-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (23 loc) · 1.08 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
img := subscription
docker-up: docker-image docker-run
docker-image:
docker build -t $(img) .
docker-run:
docker run -p 8080:8080 $(img)
docker-tests:
docker run -p 8080:8080 $(img) go test -cover ./...
run:
go run .
build:
go build
tests:
go test ./... -cover
mock-update:
mockgen -source=./adapter/http/rest/subscriptionservice/new.go -destination=./core/domain/mocks/fakesubscriptionservice.go -package=mocks
mockgen -source=./adapter/http/rest/productservice/new.go -destination=./core/domain/mocks/fakeproductservice.go -package=mocks
mockgen -source=./core/usecase/productusecase/new.go -destination=./core/domain/mocks/fakeproductusecase.go -package=mocks
mockgen -source=./core/usecase/subscriptionusecase/new.go -destination=./core/domain/mocks/fakesubscriptionusecase.go -package=mocks
mockgen -source=./adapter/sqlite/productrepository/new.go -destination=./core/domain/mocks/fakeproductrepository.go -package=mocks
mockgen -source=./adapter/sqlite/subscriptionrepository/new.go -destination=./core/domain/mocks/fakesubscriptionrepository.go -package=mocks
fmt:
go fmt ./...