Przeglądaj źródła

gofmt ci test to output issues

Jonathan Turner 8 lat temu
rodzic
commit
c533e5d7dc
1 zmienionych plików z 1 dodań i 1 usunięć
  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"
   - 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:
 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
   - go vet ./...                             # go vet is the official Go static analyzer
   #- golint -set_exit_status $(go list ./...) # golint to be added
   #- 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
   - go test -v -race -tags="integration dns" ./... # Run all the tests with the race detector enabled and integration tests