From 6eff24f435c4554d597a02636b000b4d92ddcce7 Mon Sep 17 00:00:00 2001 From: Rene Kroon Date: Sun, 7 Nov 2021 20:06:25 +0100 Subject: [PATCH] only run coverage on master --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c447fde..eafe14d 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 . - - '[ ! -z "$COVERALLS_TOKEN" ] && $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN' + - if [ "$TRAVIS_BRANCH" = "master" ]; 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