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'.
23 lines
402 B
YAML
23 lines
402 B
YAML
version: 1.0.{build}
|
|
|
|
shallow_clone: true
|
|
|
|
cache:
|
|
- downloads
|
|
|
|
environment:
|
|
matrix:
|
|
- Python: 35-x64
|
|
- Python: 27
|
|
|
|
build_script:
|
|
- PATH %CD%\here\bin;C:\mingw\bin;C:\python%Python%;C:\python%Python%\scripts;%PATH%
|
|
- pip install pyflakes pep8 coverage coveralls nose
|
|
|
|
test_script:
|
|
- pyflakes .
|
|
- pep8 .
|
|
- nosetests
|
|
- coverage report
|
|
- if not "%COVERALLS_REPO_TOKEN%"=="" coveralls
|