Files
houston-be/Makefile

43 lines
1.6 KiB
Makefile
Raw Normal View History

TP-44162 | Google Meet integration to create calendar invite with meeting link creation on incident creation (#277) * TP-44158 | Adding service to get transcript files from Google Drive (#234) Adding service to get transcript files from Google Drive * TP-45120 (#275) TP-45120 | merging Google auth implementation and calendar event fix * TP-44162 | added service implementation for calendar actions * TP-44162 | Updated label in slack message * TP-44162 | Fixed build failures * TP-44162 | Updated sql migration file name * TP-44162 | added unit tests for google calendar service * TP-48200 | updated response messages in link and unlink jira apis (#278) * TP-44162 | resolved review comments * TP-44158 | Adding service to get transcript files from Google Drive (#234) Adding service to get transcript files from Google Drive * TP-45120 (#275) TP-45120 | merging Google auth implementation and calendar event fix * TP-44162 | added service implementation for calendar actions * TP-44162 | Updated label in slack message * TP-44162 | Fixed build failures * TP-44162 | Updated sql migration file name * TP-44162 | added unit tests for google calendar service * TP-44162 | resolved review comments * TP-44162 | updated few naming conventions * TP-44162 | Adding timeouts to google drive api calls and related UTs * TP-44162 | Adding drive api timeout to viper for unit test --------- Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com> Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2023-11-09 16:25:20 +05:30
.PHONY: docker-run
docker-run: docker-build
docker run houston
2023-03-29 20:57:20 +05:30
2023-06-14 12:45:13 +05:30
.PHONY: docker-build
2023-03-29 20:57:20 +05:30
docker-build:
2023-04-12 00:14:47 +05:30
docker build -t houston -f Dockerfile.houston .
2023-03-29 20:57:20 +05:30
2023-06-14 12:45:13 +05:30
.PHONY: migration-up
2023-04-12 00:14:47 +05:30
migration-up:
2023-10-16 19:39:56 +05:30
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose up
2023-04-12 00:14:47 +05:30
2023-06-14 12:45:13 +05:30
.PHONY: migration-down
2023-04-12 00:14:47 +05:30
migration-down:
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose down
TP-44162 | Google Meet integration to create calendar invite with meeting link creation on incident creation (#277) * TP-44158 | Adding service to get transcript files from Google Drive (#234) Adding service to get transcript files from Google Drive * TP-45120 (#275) TP-45120 | merging Google auth implementation and calendar event fix * TP-44162 | added service implementation for calendar actions * TP-44162 | Updated label in slack message * TP-44162 | Fixed build failures * TP-44162 | Updated sql migration file name * TP-44162 | added unit tests for google calendar service * TP-48200 | updated response messages in link and unlink jira apis (#278) * TP-44162 | resolved review comments * TP-44158 | Adding service to get transcript files from Google Drive (#234) Adding service to get transcript files from Google Drive * TP-45120 (#275) TP-45120 | merging Google auth implementation and calendar event fix * TP-44162 | added service implementation for calendar actions * TP-44162 | Updated label in slack message * TP-44162 | Fixed build failures * TP-44162 | Updated sql migration file name * TP-44162 | added unit tests for google calendar service * TP-44162 | resolved review comments * TP-44162 | updated few naming conventions * TP-44162 | Adding timeouts to google drive api calls and related UTs * TP-44162 | Adding drive api timeout to viper for unit test --------- Co-authored-by: Sriram Bhargav <sriram.bhargav@navi.com> Co-authored-by: Shashank Shekhar <shashank.shekhar@navi.com>
2023-11-09 16:25:20 +05:30
.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/...
@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 ClientActions -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)/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)/model/user && minimock -i IUserRepositoryInterface -s _mock.go -o $(CURDIR)/mocks