From f51aba1510c30ba7d458775e9be4af6d17495a77 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 25 Mar 2015 16:17:18 +0100 Subject: [PATCH] CI: Move gofmt check to end of tests Suggested by @tyll --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9d373a245..8157db349 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,10 +11,10 @@ install: - go get -v -t ./... script: - - gofmt -l *.go */*.go */*/*.go - - test -z "$(gofmt -l *.go */*.go */*/*.go)" - go build -ldflags "-s" ./... - go build -ldflags "-s" -o restic ./cmd/restic - "stat --printf='binary size: %s' restic" - go test ./... - ./testsuite.sh + - gofmt -l *.go */*.go */*/*.go + - test -z "$(gofmt -l *.go */*.go */*/*.go)"