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

+ 2 - 1
.travis.yml

@@ -29,6 +29,7 @@ before_install:
   - docker run -d --add-host host.test.gokrb5:127.0.0.88 -v /etc/localtime:/etc/localtime:ro -p 80:80 -p 443:443 --name gokrb5-http jcmturner/gokrb5:http
 
 before_script:
+  - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
   - sudo sed -i 's/nameserver .*/nameserver 127.0.0.1/g' /etc/resolv.conf
 
 env:
@@ -36,7 +37,7 @@ env:
 
 script:
   - test -z $(gofmt -s -l $GO_FILES)         # Fail if a .go file hasn't been formatted with gofmt
-  - go test -v -race -tags=integration ./...                   # Run all the tests with the race detector enabled
+  - go test -v -race -tags=integration ./... # Run all the tests with the race detector enabled and integration tests
   - go vet ./...                             # go vet is the official Go static analyzer
   - golint -set_exit_status $(go list ./...) # golint