From 7a1a260b78b7251fcb53ce6664c370d70d2a11ba Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 14 Nov 2014 21:03:37 -0600 Subject: [PATCH] Update TravisCI to work with go tip. This commit modifies the .travis.yml to invoke a new script which has also been added that gets the test coverage tool from the new path needed by go tip. --- .travis.yml | 2 +- get_ci_cover.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 get_ci_cover.sh diff --git a/.travis.yml b/.travis.yml index 7759ad70f6..499ef6c6c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ go: - tip install: - go get -d -t -v ./... - - go get -v code.google.com/p/go.tools/cmd/cover + - ./get_ci_cover.sh script: - go test -v -covermode=count -coverprofile=profile.cov after_success: diff --git a/get_ci_cover.sh b/get_ci_cover.sh new file mode 100755 index 0000000000..0aaaba512e --- /dev/null +++ b/get_ci_cover.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +set -x +if [ "$TRAVIS_GO_VERSION" = "tip" ]; then + go get -v golang.org/x/tools/cmd/cover +else + go get -v code.google.com/p/go.tools/cmd/cover +fi