-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·18 lines (15 loc) · 855 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
tests:
go test -v --coverprofile test/coverage.out ./...
go tool cover -html=test/coverage.out
swagger:
swag fmt
swag init -g cmd/main.go
build-address-api:
@echo "Compiling Address API..."
@CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o ./bin/address ./cmd/main.go
.PHONY: mockery
mock:
@mockery --dir=internal/interfaces --name=CorreiosService --filename=correios_service_mock.go --output=internal/services/mocks --outpkg=serviceMocks
@mockery --dir=internal/interfaces --name=HttpClient --filename=http_client_mock.go --output=internal/services/mocks --outpkg=serviceMocks
@mockery --dir=internal/interfaces --name=ViaCepService --filename=via_cep_service_mock.go --output=internal/services/mocks --outpkg=serviceMocks
@mockery --dir=pkg/logger --name=Logger --filename=logger_mock.go --output=pkg/logger/mocks --outpkg=loggerMocks