From 1327ddc50be86c26740ca30aff3074b0097cd957 Mon Sep 17 00:00:00 2001 From: Jonathan J Lawlor Date: Tue, 4 Nov 2014 20:00:32 -0500 Subject: [PATCH] only do coverage when using gonum branch Travis doesn't allow secure env variables (such as the coveralls api key) to be used when merging a fork. This change avoids doing coverage under that circumstance, so that tests still run. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2180142..2b4f8c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ install: script: - go test -x -v ./... - diff <(gofmt -d .) <("") - - bash test-coverage.sh + - if [[ $TRAVIS_SECURE_ENV_VARS ]]; then bash test-coverage.sh; fi after_failure: failure