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:
parent
4b6cd17561
commit
7a1a260b78
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
8
get_ci_cover.sh
Executable file
8
get_ci_cover.sh
Executable 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
|
Loading…
Reference in a new issue