We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db21b15 + 3ace3ab commit 5926358Copy full SHA for 5926358
Makefile
@@ -57,8 +57,20 @@ lint:
57
@echo "checking lint"
58
@./.tool/lint
59
60
-test:
61
- go test -v -race -cover $(shell go list ./... | grep -v /vendor/)
+.PHONY: .gofmt .govet .gotest
+
62
+PACKAGES = $(shell go list ./... | grep -v /vendor/)
63
+test: .gofmt .govet .gotest
64
65
+FILES = $(shell find ./ -name *.go | grep -v vendor)
66
+.gofmt:
67
+ OUT=$$(gofmt -s -d $(FILES)); if test -n "$${OUT}"; then echo "$${OUT}" && exit 1; fi
68
69
+.govet:
70
+ go vet -x $(PACKAGES)
71
72
+.gotest:
73
+ go test -v -race -cover $(PACKAGES)
74
75
76
## this uses https://github.com/Masterminds/glide and https://github.com/sgotti/glide-vc
0 commit comments