Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Use pattern matching to detect go version in travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tuley committed Feb 2, 2015
1 parent bfa8f52 commit e7dc0fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ notifications:
- cf-lamb@pivotallabs.com

before_install:
- 'if [ "${TRAVIS_GO_VERSION}" = "1.3" ]; then go get code.google.com/p/go.tools/cmd/cover code.google.com/p/go.tools/cmd/vet; else go get golang.org/x/tools/cmd/cover golang.org/x/tools/cmd/vet; fi'
- 'if [[ "${TRAVIS_GO_VERSION}" =~ "1.3" ]]; then go get code.google.com/p/go.tools/cmd/cover code.google.com/p/go.tools/cmd/vet; else go get golang.org/x/tools/cmd/cover golang.org/x/tools/cmd/vet; fi'
- go get github.com/mattn/goveralls
- go get github.com/onsi/ginkgo/ginkgo

Expand Down Expand Up @@ -34,7 +34,6 @@ go:
matrix:
allow_failures:
- go: tip
- go: 1.4

env:
global:
Expand Down

0 comments on commit e7dc0fd

Please sign in to comment.