ci: use another way to check if source code formatted

Signed-off-by: Kirill Danshin <kirill@danshin.pro>
This commit is contained in:
Kirill Danshin
2018-08-13 00:12:54 +03:00
parent 110dea26f8
commit ae73e1bec7
+1 -2
View File
@@ -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