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'.
This commit is contained in:
Peter Melnichenko 2016-04-30 16:12:48 +03:00
parent 4cc9759aaf
commit 9b095a46d5

View File

@ -18,4 +18,5 @@ test_script:
- pyflakes . - pyflakes .
- pep8 . - pep8 .
- nosetests - nosetests
- coveralls - coverage report
- if not "%COVERALLS_REPO_TOKEN%"=="" coveralls