From 1a9eb8fe8b6df219f18ce92e856a8a98e7dd739d Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Wed, 5 Jul 2017 09:18:20 -0500 Subject: [PATCH] Skip coverage report for pull requests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 99fa0e6..4b632c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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