Просмотр исходного кода

gofmt ci test to output issues

Jonathan Turner 8 лет назад
Родитель
Сommit
c533e5d7dc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -37,7 +37,7 @@ env:
   - TEST_KDC_ADDR=127.0.0.1 TEST_HTTP_URL="http://host.test.gokrb5/index.html" DNSUTILS_OVERRIDE_NS="127.0.0.1:53"
 
 script:
-  - test -z $(gofmt -s -l $GO_FILES)         # Fail if a .go file hasn't been formatted with gofmt
+  - test -z $(gofmt -s -d -l -e $GO_FILES | tee /dev/fd/2 | xargs | sed 's/\s//g') # Fail if a .go file hasn't been formatted with gofmt
   - go vet ./...                             # go vet is the official Go static analyzer
   #- golint -set_exit_status $(go list ./...) # golint to be added
   - go test -v -race -tags="integration dns" ./... # Run all the tests with the race detector enabled and integration tests