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.
1 parent 83850e8 commit 64f77c0Copy full SHA for 64f77c0
Makefile
@@ -59,8 +59,17 @@ lint:
59
@echo "checking lint"
60
@./.tool/lint
61
62
-test:
63
- go test -v -race -cover $(shell go list ./... | grep -v /vendor/)
+.PHONY: .gofmt .gotest
+
64
+PACKAGES = $(shell go list ./... | grep -v /vendor/)
65
+test: .gofmt .gotest
66
67
+FILES = $(shell find ./ -name *.go | grep -v vendor)
68
+.gofmt:
69
+ OUT=$$(gofmt -s -d $(FILES)); if test -n "$${OUT}"; then echo "$${OUT}" && exit 1; fi
70
71
+.gotest:
72
+ go test -v -race -cover $(PACKAGES)
73
74
75
## this uses https://github.com/Masterminds/glide and https://github.com/sgotti/glide-vc
0 commit comments