Skip to content

Commit

Permalink
Update TravisCI to work with go tip.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davecgh committed Nov 15, 2014
1 parent 4b6cd17 commit 7a1a260
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions 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

0 comments on commit 7a1a260

Please sign in to comment.