From: Nathan Youngman Date: Wed, 31 Dec 2014 03:32:53 +0000 (-0700) Subject: add gofmt check to Travis CI X-Git-Tag: v1.7.2~246 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=fce2f578c95fca3b36b52673724083defe4e0c72;p=fsnotify.git add gofmt check to Travis CI --- diff --git a/.travis.yml b/.travis.yml index f6082d9..ae26b44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ language: go go: - 1.4 +before_script: + - FIXED=$(go fmt ./... | wc -l); if [ $FIXED -gt 0 ]; then echo "gofmt - $FIXED file(s) not formatted correctly, please run gofmt to fix this." && exit 1; fi + # not yet https://github.com/travis-ci/travis-ci/issues/2318 os: - linux