-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
37 lines (29 loc) · 656 Bytes
/
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
UNIT_TEST_CMD := go test $$(go list ./... | grep -v /vendor/) -race -v
INTEGRATION_TEST_CMD := $(UNIT_TEST_CMD) -tags='integration'
BENCHMARK_CMD := go test -benchmem -bench=.
MOCKS_CMD := go generate ./internal/mocks
DEPS_CMD := GO111MODULE=on go mod tidy && GO111MODULE=on go mod vendor
.PHONY: default
default: test
.PHONY: unit-test
unit-test:
$(UNIT_TEST_CMD)
.PHONY: integration-test
integration-test:
$(INTEGRATION_TEST_CMD)
.PHONY: test
test: integration-test
.PHONY: benchmark
benchmark:
$(BENCHMARK_CMD)
.PHONY: mocks
mocks:
$(MOCKS_CMD)
.PHONY: ci
ci: test
.PHONY: deps
deps:
$(DEPS_CMD)
.PHONY: godoc
godoc:
godoc -http=":6060"