From fce2f578c95fca3b36b52673724083defe4e0c72 Mon Sep 17 00:00:00 2001 From: Nathan Youngman Date: Tue, 30 Dec 2014 20:32:53 -0700 Subject: [PATCH] add gofmt check to Travis CI --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.1