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-09-24 10:15:58 +04:00
|
|
|
# Run slow PyPy* first, 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:
|
2017-09-09 11:25:24 +03:00
|
|
|
- python: "pypy"
|
|
|
|
- python: "pypy3"
|
2017-01-19 18:54:54 +03:00
|
|
|
- python: '3.6'
|
|
|
|
- python: '2.7'
|
2017-03-26 22:14:57 +03:00
|
|
|
- python: "2.7_with_system_site_packages" # For PyQt4
|
|
|
|
- python: '3.5'
|
|
|
|
- python: '3.4'
|
|
|
|
- python: '3.3'
|
2017-01-19 18:54:54 +03:00
|
|
|
- env: DOCKER="alpine"
|
2017-02-07 14:18:46 +03:00
|
|
|
- env: DOCKER="arch" # contains PyQt5
|
2017-01-19 18:54:54 +03:00
|
|
|
- env: DOCKER="ubuntu-trusty-x86"
|
|
|
|
- env: DOCKER="ubuntu-xenial-amd64"
|
2017-02-07 14:18:46 +03:00
|
|
|
- env: DOCKER="debian-stretch-x86"
|
2017-06-21 22:32:04 +03:00
|
|
|
- env: DOCKER="centos-6-amd64"
|
2017-11-08 14:38:49 +03:00
|
|
|
- env: DOCKER="centos-7-amd64"
|
2017-06-21 22:32:04 +03:00
|
|
|
- env: DOCKER="amazon-amd64"
|
2017-11-08 14:38:49 +03:00
|
|
|
- env: DOCKER="fedora-25-amd64"
|
2017-07-18 00:43:13 +03:00
|
|
|
- env: DOCKER="fedora-26-amd64"
|
2017-03-26 22:14:57 +03:00
|
|
|
|
2016-12-15 08:33:03 +03:00
|
|
|
dist: trusty
|
2016-12-21 22:55:45 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
sudo: required
|
2013-03-19 21:18:25 +04: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:
|
|
|
|
- if [ "$DOCKER" == "" ]; then .travis/install.sh; fi
|
2016-05-06 18:33:07 +03:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
before_install:
|
|
|
|
- if [ "$DOCKER" ]; then docker pull pythonpillow/$DOCKER; 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
|
2016-10-28 12:00:12 +03:00
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
|
2012-06-06 08:51:56 +04:00
|
|
|
script:
|
2015-01-04 11:47:35 +03:00
|
|
|
- |
|
2017-01-19 18:54:54 +03:00
|
|
|
if [ "$DOCKER" == "" ]; then
|
|
|
|
.travis/script.sh
|
|
|
|
else
|
2017-06-21 22:42:19 +03:00
|
|
|
# the Pillow user in the docker container is UID 1000
|
|
|
|
sudo chown -R 1000 $TRAVIS_BUILD_DIR
|
2017-01-19 18:54:54 +03:00
|
|
|
docker run -v $TRAVIS_BUILD_DIR:/Pillow pythonpillow/$DOCKER
|
|
|
|
fi
|
2014-07-01 00:57:16 +04:00
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
after_success:
|
|
|
|
- .travis/after_success.sh
|
2017-03-26 22:14:57 +03:00
|
|
|
|
2015-01-04 11:47:35 +03:00
|
|
|
after_failure:
|
|
|
|
- |
|
2015-01-04 19:47:03 +03:00
|
|
|
if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
2015-01-04 12:29:02 +03:00
|
|
|
curl -Lo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
|
|
|
|
python travis_after_all.py
|
|
|
|
export $(cat .to_export_back)
|
|
|
|
if [ "$BUILD_LEADER" = "YES" ]; then
|
|
|
|
if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
|
|
|
|
echo "All jobs failed"
|
|
|
|
else
|
|
|
|
echo "Some jobs failed"
|
|
|
|
fi
|
2015-01-04 11:47:35 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
after_script:
|
2015-01-04 12:29:02 +03:00
|
|
|
- |
|
2015-01-04 21:19:56 +03:00
|
|
|
if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
2015-01-04 12:29:02 +03:00
|
|
|
echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
|
|
|
|
fi
|
2015-01-04 11:47:35 +03:00
|
|
|
|
2015-01-04 11:16:20 +03:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
# travis encrypt AUTH_TOKEN=
|
2015-01-04 23:01:32 +03:00
|
|
|
secure: "Vzm7aG1Qv0SDQcqiPzZMedNLn5ZmpL7IzF0DYnqcD+/l+zmKU22SnJBcX0uVXumo+r7eZfpsShpqfcdsZvMlvmQnwz+Y6AGKQru9tCKZbTMnuRjWKKXekC+tr8Xt9CKvRVtte5PyXW31paxUI3/e+fQGBwoFjEEC+6EpEOjeRfE="
|