Skip to content

Commit

Permalink
run goveralls only for PR build (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthenw authored Feb 14, 2018
1 parent f09cd10 commit d70a637
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ script:
- go get -u github.com/alecthomas/gometalinter
- gometalinter --install --force
- gometalinter --vendor --fast --disable=gotype --disable=vetshadow --disable=gas --skip=mock ./...
- go get github.com/mattn/goveralls
- goveralls -race -service=travis-ci -ignore=./mock/*,./router/mock/*,
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then go test ./...; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then go get github.com/mattn/goveralls; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then goveralls -race -service=travis-ci -ignore=./mock/*,./router/mock/*; fi'
- go test ./tests -tags=integration
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
Expand Down

0 comments on commit d70a637

Please sign in to comment.