From d4543405b041ef8724970833783d0c3972dc6de0 Mon Sep 17 00:00:00 2001 From: Rene Kroon Date: Sat, 18 Dec 2021 20:12:21 +0100 Subject: [PATCH] Fix travis coverage on PRs --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eafe14d..06007d3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,5 +19,5 @@ script: - golint . - go test -cover -race -count=1 -timeout=30s -run . - go test -covermode=count -coverprofile=coverage.out -timeout=90s -run . - - if [ "$TRAVIS_BRANCH" = "master" ]; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi + - if test ! -z "$COVERALLS_TOKEN"; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi - cd bench; go test -run=Bench.* -bench=. -benchmem; cd .. \ No newline at end of file