* TP-38709 | Merging the changes to master on the logfix * TP-48512 | Added button element for RCA section and implemented fill rca details * TP-48512 | Small fixes * TP-48512 | adding unit tests * TP-48512 | added unit tests * TP-48512 | updated color code for rca card * TP-48512 | Removed duplicate interface * TP-48512 | Added one more unit test * TP-48512 | added comments for jira link validation and update * TP-48512 | Merging the changes to master on the logfix # Conflicts: # cmd/app/handler/slack_handler.go * TP-48512 | Added button element for RCA section and implemented fill rca details # Conflicts: # common/util/common_util.go # common/util/constant.go # internal/processor/action/incident_resolve_action.go # internal/processor/action/incident_update_jira-links_action.go # internal/processor/action/incident_update_resolution_text_action.go # internal/processor/action/view/incident_resolution_text.go # internal/processor/action/view/incident_section.go # service/slack/slack_service.go * TP-48512 | Small fixes * TP-48512 | adding unit tests * TP-48512 | added unit tests # Conflicts: # Makefile # service/incident/incident_service_v2_interface.go * TP-48512 | updated color code for rca card * TP-48512 | Removed duplicate interface * TP-48512 | Added one more unit test * TP-48512 | added comments for jira link validation and update * TP-48512 | Fixed merge conflicts * TP-48512 | Fixed merge conflicts * TP-48512 | Fixed merge conflicts * TP-48512 | Added sql migration script for adding tags * TP-48512 | Updated sql migration script for adding tags * TP-48512 | Fixed merge conflicts and updated tags in sql migration script
61 lines
3.2 KiB
Makefile
61 lines
3.2 KiB
Makefile
.PHONY: docker-run
|
|
docker-run: docker-build
|
|
docker run houston
|
|
|
|
.PHONY: docker-build
|
|
docker-build:
|
|
docker build -t houston -f Dockerfile.houston .
|
|
|
|
.PHONY: migration-up
|
|
migration-up:
|
|
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose up
|
|
|
|
.PHONY: migration-down
|
|
migration-down:
|
|
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose down
|
|
|
|
.PHONY: build
|
|
build: test
|
|
go mod tidy && CGO_ENABLED=0 go build -ldflags="-s -w" -o houston cmd/main.go
|
|
|
|
.PHONY: test
|
|
test: generatemocks
|
|
go test -v -count=1 $(CURDIR)/service/...
|
|
go test -v -count=1 $(CURDIR)/pkg/...
|
|
go test -v -count=1 $(CURDIR)/common/...
|
|
@rm -rf $(CURDIR)/mocks
|
|
|
|
# Keep all mock file generation below this line
|
|
.PHONY: generatemocks
|
|
generatemocks:
|
|
@go install github.com/gojuno/minimock/v3/cmd/minimock@v3.1.3
|
|
@go mod tidy
|
|
@rm -rf $(CURDIR)/mocks
|
|
@echo "Generating mocks..."
|
|
@mkdir "mocks"
|
|
cd $(CURDIR)/pkg/google/googleDrive && minimock -i GoogleDriveActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/conference && minimock -i ICalendarActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/rest/ && minimock -i HttpRestClient -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/atlassian/ && minimock -i JiraClient -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/slack && minimock -i ISlackService -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/incident && minimock -i IIncidentService -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/repository/rca && minimock -i IRcaRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/incident && minimock -i IIncidentRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/monitoringService && minimock -i MonitoringServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/incident && minimock -i IIncidentRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/monitoringService && minimock -i ServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/monitoringService && minimock -i MonitoringServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/common/util/channel && minimock -i IChannelUtil -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/incident_channel && minimock -i IIncidentChannelService -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/team && minimock -i ITeamRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/severity && minimock -i ISeverityRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/user && minimock -i IUserRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/documentService && minimock -i ServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/repository/rcaInput && minimock -i IRcaInputRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/teamService && minimock -i ITeamServiceV2 -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/user && minimock -i IUserRepositoryInterface -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/tag && minimock -i ITagRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/incident && minimock -i IIncidentRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/monitoringService && minimock -i MonitoringServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/krakatoa && minimock -i IKrakatoaService -s _mock.go -o $(CURDIR)/mocks
|