From 68e1e484594aa86a874c6eb2ad328274c5f48dd7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 22 Jun 2017 16:00:53 +0200 Subject: [PATCH] feat build: Test if 'go fmt' has been applied --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index db8944c..382ca50 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 ./...