feat build: Test if 'go fmt' has been applied

This commit is contained in:
Vincent Ambo 2017-06-22 16:00:53 +02:00
parent 8c7a3d6c30
commit 68e1e48459

View file

@ -1,4 +1,5 @@
---
language: go
before_script:
- if [[ -n "$(go fmt ./...)" ]]; then echo 'Run go fmt!' && exit 1; fi
- go vet ./...