Browse Source

Add go fmt to build

Willem van Bergen 11 years ago
parent
commit
433899edf5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .travis.yml

+ 1 - 0
.travis.yml

@@ -16,6 +16,7 @@ before_install:
 
 
 script:
 script:
 - go test -v -race ./...
 - go test -v -race ./...
+- if [[ -n $(go fmt ./...) ]]; then echo "Please run go fmt on your code." && exit 1; fi
 
 
 notifications:
 notifications:
   flowdock: 15e08f7ed3a8fd2d89ddb36435301c1a
   flowdock: 15e08f7ed3a8fd2d89ddb36435301c1a