Merge pull request #594 from hugovk/master

Add coverage reports for Python code on Travis CI
This commit is contained in:
Alex Clark ☺ 2014-04-07 18:35:22 -04:00
commit 5dc5d2db66

View File

@ -17,6 +17,7 @@ python:
install:
- "sudo apt-get -qq install libfreetype6-dev liblcms2-dev python-qt4 ghostscript libffi-dev cmake"
- "pip install cffi"
- "pip install coveralls"
# webp
- pushd depends && ./install_webp.sh && popd
@ -25,10 +26,18 @@ install:
- pushd depends && ./install_openjpeg.sh && popd
script:
- coverage erase
- python setup.py clean
- python setup.py build_ext --inplace
- python selftest.py
- python Tests/run.py
- coverage run --append --include=PIL/* selftest.py
- coverage run --append --include=PIL/* Tests/run.py
after_success:
- coverage report
- coveralls
- pip install pep8 pyflakes
- pep8 PIL/*.py
- pyflakes PIL/*.py
matrix:
allow_failures: