From 9b095a46d512292d4d04fd80bedca3353c19a420 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Sat, 30 Apr 2016 16:12:48 +0300 Subject: [PATCH] Don't report coverage to coveralls.io on Appveyor for PRs For coverage reporting on Appveyor it's necessary to set COVERALLS_REPO_TOKEN env variable. For security reasons it's not available when building pull requests, so don't call 'coveralls' in that case. To compensate, always run 'coverage report'. --- appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 433d0e8..a617339 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,4 +18,5 @@ test_script: - pyflakes . - pep8 . - nosetests - - coveralls + - coverage report + - if not "%COVERALLS_REPO_TOKEN%"=="" coveralls