2012-06-06 08:51:56 +04:00
|
|
|
language: python
|
|
|
|
|
2014-04-02 14:53:34 +04:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#pil"
|
2014-03-26 23:04:54 +04:00
|
|
|
|
2014-07-01 22:52:52 +04:00
|
|
|
env: MAX_CONCURRENCY=4
|
2014-06-25 03:01:05 +04:00
|
|
|
|
2012-06-06 08:51:56 +04:00
|
|
|
python:
|
2014-05-14 09:47:13 +04:00
|
|
|
- "pypy"
|
2014-03-26 23:04:54 +04:00
|
|
|
- 2.6
|
2012-06-06 08:51:56 +04:00
|
|
|
- 2.7
|
2014-07-21 13:15:23 +04:00
|
|
|
- "2.7_with_system_site_packages" # For PyQt4
|
2014-03-26 23:04:54 +04:00
|
|
|
- 3.2
|
|
|
|
- 3.3
|
2014-04-30 12:07:43 +04:00
|
|
|
- 3.4
|
2012-06-06 08:51:56 +04:00
|
|
|
|
2014-04-02 12:00:43 +04:00
|
|
|
install:
|
2014-07-05 22:02:13 +04:00
|
|
|
- "sudo apt-get -qq install libfreetype6-dev liblcms2-dev python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick"
|
2014-01-06 09:36:29 +04:00
|
|
|
- "pip install cffi"
|
2014-07-07 23:34:34 +04:00
|
|
|
- "pip install coveralls nose"
|
|
|
|
- travis_retry pip install pyroma
|
2014-06-10 13:26:50 +04:00
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" == "2.6" ]; then pip install unittest2; fi
|
2013-03-19 21:18:25 +04:00
|
|
|
|
2014-04-02 12:00:43 +04:00
|
|
|
# webp
|
2014-03-27 01:11:41 +04:00
|
|
|
- pushd depends && ./install_webp.sh && popd
|
2014-03-26 20:29:47 +04:00
|
|
|
|
2014-03-26 23:04:54 +04:00
|
|
|
# openjpeg
|
2014-03-27 00:22:37 +04:00
|
|
|
- pushd depends && ./install_openjpeg.sh && popd
|
2013-03-19 21:18:25 +04:00
|
|
|
|
2012-06-06 08:51:56 +04:00
|
|
|
script:
|
2014-04-02 12:00:43 +04:00
|
|
|
- coverage erase
|
2012-06-06 08:51:56 +04:00
|
|
|
- python setup.py clean
|
2013-06-30 23:02:16 +04:00
|
|
|
- python setup.py build_ext --inplace
|
2014-05-14 09:17:49 +04:00
|
|
|
|
|
|
|
# Don't cover PyPy: it fails intermittently and is x5.8 slower (#640)
|
2014-06-10 13:26:50 +04:00
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then time python selftest.py; fi
|
2014-07-19 19:57:21 +04:00
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then time nosetests -vx Tests/test_*.py; fi
|
2014-05-14 09:17:49 +04:00
|
|
|
|
|
|
|
# Cover the others
|
2014-07-01 22:52:52 +04:00
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then time coverage run --append --include=PIL/* selftest.py; fi
|
2014-07-19 19:57:21 +04:00
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then time coverage run --append --include=PIL/* -m nose -vx Tests/test_*.py; fi
|
2014-04-02 12:00:43 +04:00
|
|
|
|
|
|
|
after_success:
|
2014-04-02 12:40:40 +04:00
|
|
|
- coverage report
|
2014-07-03 16:09:33 +04:00
|
|
|
# No need to send empty coverage to Coveralls for PyPy
|
|
|
|
- if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then coveralls; fi
|
2014-06-28 12:02:09 +04:00
|
|
|
|
2014-04-05 02:25:55 +04:00
|
|
|
- pip install pep8 pyflakes
|
2014-06-02 16:57:50 +04:00
|
|
|
- pep8 --statistics --count PIL/*.py
|
2014-06-10 13:26:50 +04:00
|
|
|
- pep8 --statistics --count Tests/*.py
|
2014-06-02 16:57:50 +04:00
|
|
|
- pyflakes PIL/*.py | tee >(wc -l)
|
|
|
|
- pyflakes Tests/*.py | tee >(wc -l)
|
2014-06-28 12:18:33 +04:00
|
|
|
|
2014-07-01 00:57:16 +04:00
|
|
|
|
|
|
|
# Coverage and quality reports on just the latest diff.
|
|
|
|
# (Installation is very slow on Py3, so just do it for Py2.)
|
2014-07-01 03:16:34 +04:00
|
|
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover-install.sh; fi
|
2014-07-01 17:25:24 +04:00
|
|
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover-run.sh; fi
|