Skip to content

Commit

Permalink
Try wildcard in go version check
Browse files Browse the repository at this point in the history
  • Loading branch information
saheljalal committed Oct 3, 2021
1 parent fcb238b commit 635fca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -8,9 +8,10 @@ sudo: false

install:
- go get golang.org/x/tools/cmd/cover
- if [[ $TRAVIS_GO_VERSION == 1.13.15 ]]; then go get github.com/mattn/goveralls; else go install github.com/mattn/goveralls@latest; fi
- if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then go get github.com/mattn/goveralls; else go install github.com/mattn/goveralls@latest; fi

script:
- echo "TRAVIS_GO_VERSION=${TRAVIS_GO_VERSION}"
- go test -v -covermode=count -coverprofile=coverage.out ./...
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

Expand Down

0 comments on commit 635fca6

Please sign in to comment.