Skip to content

Commit

Permalink
Doesn't run tests on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed May 1, 2019
1 parent eda97a4 commit 32c39f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ services:
- docker

install:
- bash tests/prepare.sh
- test -n "$TRAVIS_TAG" || bash tests/prepare.sh

script:
- go test -v -covermode=count -coverprofile=coverage.out ./...
- test -n "$TRAVIS_TAG" || go test -v -covermode=count -coverprofile=coverage.out ./...

after_script:
# Install and upload test coverage must not failure for test build
- go get -mod= golang.org/x/tools/cmd/cover
- go get -mod= github.com/mattn/goveralls
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- test -n "$TRAVIS_TAG" || go get -mod= golang.org/x/tools/cmd/cover
- test -n "$TRAVIS_TAG" || go get -mod= github.com/mattn/goveralls
- test -n "$TRAVIS_TAG" || goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

before_deploy:
- git config --local user.name "$GIT_NAME"
Expand Down

0 comments on commit 32c39f8

Please sign in to comment.