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.
This commit is contained in:
Dave Collins 2014-11-14 21:03:37 -06:00
parent 4b6cd17561
commit 7a1a260b78
2 changed files with 9 additions and 1 deletions

View file

@ -4,7 +4,7 @@ go:
- tip - tip
install: install:
- go get -d -t -v ./... - go get -d -t -v ./...
- go get -v code.google.com/p/go.tools/cmd/cover - ./get_ci_cover.sh
script: script:
- go test -v -covermode=count -coverprofile=profile.cov - go test -v -covermode=count -coverprofile=profile.cov
after_success: after_success:

8
get_ci_cover.sh Executable file
View file

@ -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