2018-06-28 17:53:18 +03:00
|
|
|
dist: xenial
|
2012-06-06 08:51:56 +04:00
|
|
|
language: python
|
2018-01-04 16:30:53 +03:00
|
|
|
cache: pip
|
2012-06-06 08:51:56 +04:00
|
|
|
|
2014-04-02 14:53:34 +04:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#pil"
|
2014-03-26 23:04:54 +04:00
|
|
|
|
2018-10-17 22:24:05 +03:00
|
|
|
# Run fast lint first to get fast feedback.
|
|
|
|
# Run slow PyPy* next, to give them a headstart and reduce waiting time.
|
2014-09-23 11:59:03 +04:00
|
|
|
# Run latest 3.x and 2.x next, to get quick compatibility results.
|
2017-03-26 22:14:57 +03:00
|
|
|
# Then run the remainder, with fastest Docker jobs last.
|
2012-06-06 08:51:56 +04:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
matrix:
|
2017-01-20 22:34:13 +03:00
|
|
|
fast_finish: true
|
2017-01-19 18:54:54 +03:00
|
|
|
include:
|
2018-10-17 22:24:05 +03:00
|
|
|
- python: "3.6"
|
|
|
|
name: "Lint"
|
|
|
|
env: LINT="true"
|
2018-12-06 18:20:38 +03:00
|
|
|
- python: "pypy2.7-6.0"
|
2018-12-06 18:27:15 +03:00
|
|
|
name: "PyPy2 Xenial"
|
|
|
|
dist: xenial
|
2018-12-06 18:20:38 +03:00
|
|
|
- python: "pypy3.5-6.0"
|
2018-12-06 18:27:15 +03:00
|
|
|
name: "PyPy3 Xenial"
|
|
|
|
dist: xenial
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '3.7'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.7 Xenial"
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '2.7'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "2.7 Xenial"
|
2017-01-19 18:54:54 +03:00
|
|
|
- python: '2.7'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "2.7 Trusty"
|
2018-07-03 16:40:18 +03:00
|
|
|
dist: trusty
|
2017-03-26 22:14:57 +03:00
|
|
|
- python: "2.7_with_system_site_packages" # For PyQt4
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "2.7_with_system_site_packages Xenial"
|
2019-01-15 14:13:45 +03:00
|
|
|
services: xvfb
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: "2.7_with_system_site_packages" # For PyQt4
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "2.7_with_system_site_packages Trusty"
|
2018-07-03 16:40:18 +03:00
|
|
|
dist: trusty
|
|
|
|
- python: '3.6'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.6 Xenial"
|
2018-04-05 13:52:48 +03:00
|
|
|
- python: '3.6'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.6 Trusty PYTHONOPTIMIZE=1"
|
2018-07-03 16:40:18 +03:00
|
|
|
dist: trusty
|
2018-09-21 13:31:16 +03:00
|
|
|
env: PYTHONOPTIMIZE=1
|
2018-07-03 16:40:18 +03:00
|
|
|
- python: '3.5'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.5 Xenial"
|
2017-03-26 22:14:57 +03:00
|
|
|
- python: '3.5'
|
2018-10-17 16:41:28 +03:00
|
|
|
name: "3.5 Trusty PYTHONOPTIMIZE=2"
|
2018-07-03 16:40:18 +03:00
|
|
|
dist: trusty
|
2018-09-21 13:31:16 +03:00
|
|
|
env: PYTHONOPTIMIZE=2
|
2018-12-28 21:59:00 +03:00
|
|
|
- env: DOCKER="alpine" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="arch" DOCKER_TAG="master" # contains PyQt5
|
|
|
|
- env: DOCKER="ubuntu-trusty-x86" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="ubuntu-xenial-amd64" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="debian-stretch-x86" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="centos-6-amd64" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="centos-7-amd64" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="amazon-1-amd64" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="amazon-2-amd64" DOCKER_TAG="master"
|
2018-12-27 02:58:49 +03:00
|
|
|
- env: DOCKER="fedora-28-amd64" DOCKER_TAG="master"
|
|
|
|
- env: DOCKER="fedora-29-amd64" DOCKER_TAG="master"
|
2017-03-26 22:14:57 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
services:
|
|
|
|
- docker
|
2016-12-21 22:55:45 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
install:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
|
|
|
if [ "$LINT" == "true" ]; then
|
2019-01-13 19:55:06 +03:00
|
|
|
pip install tox
|
2018-10-17 22:24:05 +03:00
|
|
|
elif [ "$DOCKER" == "" ]; then
|
|
|
|
.travis/install.sh;
|
|
|
|
fi
|
2016-05-06 18:33:07 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
before_install:
|
2018-06-11 21:16:00 +03:00
|
|
|
- if [ "$DOCKER" ]; then travis_retry docker pull pythonpillow/$DOCKER:$DOCKER_TAG; fi
|
2016-11-05 21:11:30 +03:00
|
|
|
|
2016-10-28 12:00:12 +03:00
|
|
|
before_script:
|
2016-10-28 12:44:28 +03:00
|
|
|
# Qt needs a display for some of the tests, and it's only run on the system site packages install
|
2019-01-15 12:37:17 +03:00
|
|
|
- |
|
2019-01-15 14:13:45 +03:00
|
|
|
if [ "$TRAVIS_JOB_NAME" == "2.7_with_system_site_packages Trusty" ]; then
|
2019-01-15 12:37:17 +03:00
|
|
|
export DISPLAY=:99.0
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
fi
|
2016-10-28 12:00:12 +03:00
|
|
|
|
2012-06-06 08:51:56 +04:00
|
|
|
script:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
2018-11-11 22:38:06 +03:00
|
|
|
if [ "$LINT" == "true" ]; then
|
2019-01-13 19:55:06 +03:00
|
|
|
tox -e lint
|
2018-11-11 22:38:06 +03:00
|
|
|
elif [ "$DOCKER" == "" ]; then
|
2018-10-17 22:24:05 +03:00
|
|
|
.travis/script.sh
|
|
|
|
elif [ "$DOCKER" ]; then
|
|
|
|
# the Pillow user in the docker container is UID 1000
|
|
|
|
sudo chown -R 1000 $TRAVIS_BUILD_DIR
|
|
|
|
docker run -v $TRAVIS_BUILD_DIR:/Pillow pythonpillow/$DOCKER:$DOCKER_TAG
|
|
|
|
fi
|
2014-07-01 00:57:16 +04:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
after_success:
|
2018-10-17 22:24:05 +03:00
|
|
|
- |
|
2018-11-11 22:38:06 +03:00
|
|
|
if [ "$LINT" == "" ]; then
|
2018-10-17 22:24:05 +03:00
|
|
|
.travis/after_success.sh
|
|
|
|
fi
|