about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-06-22T14·00+0200
committerVincent Ambo <tazjin@gmail.com>2017-07-03T12·27+0200
commit68e1e484594aa86a874c6eb2ad328274c5f48dd7 (patch)
treee49ec2bec5666a2bae9a62ab8fd32d7924978071
parent8c7a3d6c30292a003c62792ce0ac03abff264a85 (diff)
feat build: Test if 'go fmt' has been applied
-rw-r--r--.travis.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index db8944c2c5e7..382ca506195d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
 ---
 language: go
 before_script:
+  - if [[ -n "$(go fmt ./...)" ]]; then echo 'Run go fmt!' && exit 1; fi
   - go vet ./...