Skip to content

Commit 16fd6d3

Browse files
authored
Removing golint checks from 1.6.x build (#141)
* Removing golint checks from 1.6.x build * Minor reformat
1 parent d9742c8 commit 16fd6d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ matrix:
1919
go_import_path: firebase.google.com/go
2020

2121
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
2324

2425
install:
2526
# Prior to golang 1.8, this can trigger an error for packages containing only tests.
2627
- go get -t -v $(go list ./... | grep -v integration)
2728

2829
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
3031
- ./.travis.gofmt.sh
3132
- go test -v -race -test.short ./... # Run tests with the race detector.
3233
- go vet -v ./... # Run Go static analyzer.

0 commit comments

Comments
 (0)