Skip to content

Commit

Permalink
travis: fail if not gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Sep 5, 2018
1 parent 9f2cc4e commit 52ecf35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- "1.10"
- "1.11"

sudo: required

Expand All @@ -16,6 +16,7 @@ install:
- chmod +x $HOME/.local/bin/prototool

script:
- diff -u <(echo -n) <(gofmt -l -s $(go list -f '{{.Dir}}') | grep -v '/vendor/')
- prototool format -d api/v3/clairpb/clair.proto
- prototool lint api/v3/clairpb/clair.proto
- go test $(glide novendor | grep -v contrib)
Expand Down

0 comments on commit 52ecf35

Please sign in to comment.