From 39d758c2c39841e32a6d34e77840485bf07aea08 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 6 Jan 2015 21:09:02 -0600 Subject: [PATCH] Fix TravisCI build for Go release version. --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 32f8400d..21402c35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,12 @@ go: - 1.3 - release - tip +before_install: + - gotools=golang.org/x/tools + - if [ "$TRAVIS_GO_VERSION" = "release" ] || [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then gotools=code.google.com/p/go.tools; fi install: - go get -d -t -v ./... - - if [ "$TRAVIS_GO_VERSION" = "go1.3.3" ]; then go get -v code.google.com/p/go.tools/cmd/vet; else go get -v golang.org/x/tools/cmd/vet; fi + - go get $gotools/cmd/vet - go get -v github.com/GeertJohan/fgt - go get -v github.com/golang/lint/golint script: