File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,15 @@ matrix:
19
19
go_import_path : firebase.google.com/go
20
20
21
21
before_install :
22
- - go get github.com/golang/lint/golint # Golint requires Go 1.6 or later.
22
+ # Golint requires Go 1.7 or later.
23
+ - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then go get github.com/golang/lint/golint; fi
23
24
24
25
install :
25
26
# Prior to golang 1.8, this can trigger an error for packages containing only tests.
26
27
- go get -t -v $(go list ./... | grep -v integration)
27
28
28
29
script :
29
- - golint -set_exit_status $(go list ./...)
30
+ - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then golint -set_exit_status $(go list ./...); fi
30
31
- ./.travis.gofmt.sh
31
32
- go test -v -race -test.short ./... # Run tests with the race detector.
32
33
- go vet -v ./... # Run Go static analyzer.
You can’t perform that action at this time.
0 commit comments