-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 743 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 743 Bytes
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
.PHONY: gen
gen:
protoc --go_out=. --go_opt=paths=import \
--go-grpc_out=. --go-grpc_opt=paths=import \
./api/tags.proto
.PHONY: test
test:
go test --v ./... --coverpkg=./internal/... --coverprofile=coverage.out
.PHONY: c
c:
go tool cover --func coverage.out
.PHONY: tc
tc: test c
.PHONY: dock
dock:
docker build . --file=infra/tags.dockerfile --tag="vladmarlo/tags_backend:latest"
docker build . --file=infra/migrator.dockerfile --tag="vladmarlo/tags_migrator:latest"
.PHONY: dock/push
dock/push: dock
docker push vladmarlo/tags_backend:latest
docker push vladmarlo/tags_migrator:latest
.PHONY: dock/run
dock/run:
docker-compose up -d
.PHONY: lines
lines:
git ls-files | xargs wc -l
.DEFAULT_GOAL := build