-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 905 Bytes
/
Makefile
File metadata and controls
51 lines (36 loc) · 905 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: build
build:
docker-compose build $(SERVICES)
.PHONY: status logs start stop clean
ps:
docker-compose ps $(SERVICES)
logs:
docker-compose logs -f $(SERVICES)
up:
docker-compose up -d $(SERVICES)
start:
docker-compose start $(SERVICES)
stop:
docker-compose stop $(SERVICES)
down:stop
docker-compose down -v --remove-orphans
attach:
docker-compose exec $(SERVICE) bash
prune:
docker system prune
.PHONY: test
test:
docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit
docker-compose -f docker-compose.test.yml down --volumes
.PHONY: gen gtest
gen:
protoc \
--go_out=proto/pb \
--go_opt=paths=source_relative \
--go-grpc_out=proto/pb \
--go-grpc_opt=paths=source_relative \
--proto_path=proto/protofiles \
proto/protofiles/*.proto
gtest:
go test -v -cover -coverprofile coverage.out ./...
go tool cover -html=coverage.out -o coverage.html