travis: fail if not gofmt -s
This commit is contained in:
parent
9f2cc4e533
commit
52ecf35ca6
@ -1,7 +1,7 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.10"
|
- "1.11"
|
||||||
|
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
@ -16,6 +16,7 @@ install:
|
|||||||
- chmod +x $HOME/.local/bin/prototool
|
- chmod +x $HOME/.local/bin/prototool
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- diff -u <(echo -n) <(gofmt -l -s $(go list -f '{{.Dir}}') | grep -v '/vendor/')
|
||||||
- prototool format -d api/v3/clairpb/clair.proto
|
- prototool format -d api/v3/clairpb/clair.proto
|
||||||
- prototool lint api/v3/clairpb/clair.proto
|
- prototool lint api/v3/clairpb/clair.proto
|
||||||
- go test $(glide novendor | grep -v contrib)
|
- go test $(glide novendor | grep -v contrib)
|
||||||
|
Loading…
Reference in New Issue
Block a user