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 455d5c1 commit 1a8eb67Copy full SHA for 1a8eb67
.travis.yml
@@ -6,4 +6,4 @@ go:
6
install:
7
- make get-deps
8
script:
9
-- make all test
+- make all check-gofmt test
Makefile
@@ -37,5 +37,12 @@ get-deps:
37
go get github.com/robfig/glock
38
glock sync -n < GLOCKFILE
39
40
+check-gofmt:
41
+ if [ -n "$(shell gofmt -l .)" ]; then \
42
+ echo 1>&2 'The following files need to be formatted:'; \
43
+ gofmt -l .; \
44
+ exit 1; \
45
+ fi
46
+
47
test:
48
go test
0 commit comments