-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 2.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
build:
go build -o bin/currency-conversion
run:
./bin/currency-conversion
start:
swag init && go build -o bin/currency-conversion && ./bin/currency-conversion
clean:
rm -rf bin && rm -rf app/mocks && rm -rf postgres_migrate && rm -rf postgres_drop && rm -rf unit_covarage.out && clear
unit-tests:
go test -v ./... -coverprofile=unit_coverage.out -short -tags=unit
linter:
golangci-lint run
migrate-tables:
go build -o postgres_migrate ./seed/cmd && ./postgres_migrate -type=migrate && rm -rf postgres_migrate && clear
drop-tables:
go build -o postgres_drop ./seed/cmd && ./postgres_drop -type=drop && rm -rf postgres_drop && clear
swagger:
swag init
generate-mocks:
mockgen -destination=app/mocks/auth/mock_user_repository.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/auth AuthRepository
mockgen -destination=app/mocks/auth/mock_auth_service.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/auth AuthService
mockgen -destination=app/mocks/exchange/mock_exchange_service.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/exchange ExchangeService
mockgen -destination=app/mocks/exchange/mock_auth_guard.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/exchange AuthGuard
mockgen -destination=app/mocks/exchange/mock_exchange_repository.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/exchange ExchangeRepository
mockgen -destination=app/mocks/conversion/mock_conversion_service.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/conversion ConversionService
mockgen -destination=app/mocks/conversion/mock_auth_guard.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/conversion AuthGuard
mockgen -destination=app/mocks/conversion/mock_wallet_service.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/conversion WalletService
mockgen -destination=app/mocks/conversion/mock_conversion_repository.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/conversion ConversionRepository
mockgen -destination=app/mocks/wallet/mock_wallet_service.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/wallet WalletService
mockgen -destination=app/mocks/wallet/mock_auth_guard.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/wallet AuthGuard
mockgen -destination=app/mocks/wallet/mock_wallet_repository.go -package mocks github.com/eneskzlcn/currency-conversion-service/app/wallet WalletRepository