From ae73e1bec752e2cfb5f49eac5b1418c005782cc4 Mon Sep 17 00:00:00 2001 From: Kirill Danshin Date: Mon, 13 Aug 2018 00:12:54 +0300 Subject: [PATCH] ci: use another way to check if source code formatted Signed-off-by: Kirill Danshin --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b318414..8d626ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,11 @@ matrix: fast_finish: true before_install: - - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) - go get -t -v ./... - go get -v golang.org/x/tools/cmd/goimports script: - - test -z $(goimports -l $GO_FILES) + - test -z $(goimports -d .) # build test for supported platforms - GOOS=linux go build - GOOS=darwin go build