mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
language: python
|
|
|
|
notifications:
|
|
irc: "chat.freenode.net#pil"
|
|
|
|
python:
|
|
- "pypy"
|
|
- 2.6
|
|
- 2.7
|
|
- 3.2
|
|
- 3.3
|
|
- 3.4
|
|
|
|
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
|
|
|
|
# openjpeg
|
|
- pushd depends && ./install_openjpeg.sh && popd
|
|
|
|
script:
|
|
- coverage erase
|
|
- python setup.py clean
|
|
- python setup.py build_ext --inplace
|
|
|
|
# Don't cover PyPy: it fails intermittently and is x5.8 slower (#640)
|
|
- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then python selftest.py; fi
|
|
- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then python Tests/run.py; fi
|
|
|
|
# Cover the others
|
|
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then coverage run --append --include=PIL/* selftest.py; fi
|
|
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then python Tests/run.py --coverage; fi
|
|
|
|
after_success:
|
|
- coverage report
|
|
- coveralls
|
|
- pip install pep8 pyflakes
|
|
- pep8 PIL/*.py
|
|
- pyflakes PIL/*.py
|
|
- pep8 Tests/*.py
|
|
- pyflakes Tests/*.py
|