From b91bc5c745e4e51595c30c201c4b41331b3fb0db Mon Sep 17 00:00:00 2001 From: hiranya911 Date: Mon, 7 May 2018 13:25:23 -0700 Subject: [PATCH 1/2] Removing golint checks from 1.6.x build --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ab496972..5e0df03b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,14 +19,14 @@ matrix: go_import_path: firebase.google.com/go before_install: - - go get github.com/golang/lint/golint # Golint requires Go 1.6 or later. + - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then go get github.com/golang/lint/golint; fi # Golint requires Go 1.7 or later. install: # Prior to golang 1.8, this can trigger an error for packages containing only tests. - go get -t -v $(go list ./... | grep -v integration) script: - - golint -set_exit_status $(go list ./...) + - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then golint -set_exit_status $(go list ./...); fi - ./.travis.gofmt.sh - go test -v -race -test.short ./... # Run tests with the race detector. - go vet -v ./... # Run Go static analyzer. From f5b38154f89b03ff66dde1833dc971a798d41c17 Mon Sep 17 00:00:00 2001 From: hiranya911 Date: Mon, 7 May 2018 14:04:05 -0700 Subject: [PATCH 2/2] Minor reformat --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5e0df03b..2b5f04ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,8 @@ matrix: go_import_path: firebase.google.com/go before_install: - - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then go get github.com/golang/lint/golint; fi # Golint requires Go 1.7 or later. + # Golint requires Go 1.7 or later. + - if ! [[ "$TRAVIS_GO_VERSION" =~ ^1\.6\.[0-9]+$ ]]; then go get github.com/golang/lint/golint; fi install: # Prior to golang 1.8, this can trigger an error for packages containing only tests.