Skip coverage report for pull requests

This commit is contained in:
Michael Steinert
2017-07-05 09:18:20 -05:00
parent db23a9ef3f
commit 1a9eb8fe8b

View File

@@ -15,4 +15,4 @@ before_install:
script:
- sudo GOROOT=$GOROOT GOPATH=$GOPATH $(which go) test -v -covermode=count -coverprofile=coverage.out .
- goveralls -coverprofile=coverage.out -service travis-ci -repotoken $REPO_TOKEN
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then goveralls -coverprofile=coverage.out -service travis-ci -repotoken $REPO_TOKEN; fi