-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (34 loc) · 1.43 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
MOCKGEN := go run go.uber.org/mock/mockgen
.PHONY: test
test:
go test ./... -coverprofile=coverage.txt -covermode=count
test-container:
docker build -t canarycage/test-container test-container
push-test-container: test-container
docker tag canarycage/test-container loilodev/http-server:latest
docker push loilodev/http-server:latest
version:
go run cli/cage/main.go -v | cut -f 3 -d ' '
mocks: go.sum \
mocks/mock_awsiface/iface.go \
mocks/mock_types/iface.go \
mocks/mock_upgrade/upgrade.go \
mocks/mock_task/task.go \
mocks/mock_taskset/taskset.go \
mocks/mock_task/factory.go \
mocks/mock_rollout/executor.go
mocks/mock_awsiface/iface.go: awsiface/iface.go
$(MOCKGEN) -source=./awsiface/iface.go > mocks/mock_awsiface/iface.go
mocks/mock_types/iface.go: types/iface.go
$(MOCKGEN) -source=./types/iface.go > mocks/mock_types/iface.go
mocks/mock_upgrade/upgrade.go: cli/cage/upgrade/upgrade.go
$(MOCKGEN) -source=./cli/cage/upgrade/upgrade.go > mocks/mock_upgrade/upgrade.go
mocks/mock_task/task.go: task/task.go
$(MOCKGEN) -source=./task/task.go > mocks/mock_task/task.go
mocks/mock_taskset/taskset.go: taskset/taskset.go
$(MOCKGEN) -source=./taskset/taskset.go > mocks/mock_taskset/taskset.go
mocks/mock_task/factory.go: task/factory.go
$(MOCKGEN) -source=./task/factory.go > mocks/mock_task/factory.go
mocks/mock_rollout/executor.go: rollout/executor.go
$(MOCKGEN) -source=./rollout/executor.go > mocks/mock_rollout/executor.go
.PHONY: mocks