Pillow/.travis.yml

64 lines
1.8 KiB
YAML
Raw Normal View History

language: python
cache: pip
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.
# Run latest 3.x and 2.x next, to get quick compatibility results.
# Then run the remainder, with fastest Docker jobs last.
2017-01-19 18:54:54 +03:00
matrix:
fast_finish: true
2017-01-19 18:54:54 +03:00
include:
2017-09-09 11:25:24 +03:00
- python: "pypy"
- python: "pypy3"
2018-04-05 13:52:48 +03:00
- python: '3.7-dev'
2017-01-19 18:54:54 +03:00
- python: '2.7'
- python: "2.7_with_system_site_packages" # For PyQt4
2018-04-05 13:52:48 +03:00
- python: '3.6'
- python: '3.5'
- python: '3.4'
- env: DOCKER="alpine" DOCKER_TAG="pytest"
- env: DOCKER="arch" DOCKER_TAG="pytest" # contains PyQt5
- env: DOCKER="ubuntu-trusty-x86" DOCKER_TAG="pytest"
- env: DOCKER="ubuntu-xenial-amd64" DOCKER_TAG="pytest"
- env: DOCKER="debian-stretch-x86" DOCKER_TAG="pytest"
- env: DOCKER="centos-6-amd64" DOCKER_TAG="pytest"
- env: DOCKER="centos-7-amd64" DOCKER_TAG="pytest"
- env: DOCKER="amazon-1-amd64" DOCKER_TAG="pytest"
- env: DOCKER="amazon-2-amd64" DOCKER_TAG="pytest"
- env: DOCKER="fedora-26-amd64" DOCKER_TAG="pytest"
- env: DOCKER="fedora-27-amd64" DOCKER_TAG="pytest"
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:$DOCKER_TAG; fi
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"
script:
- |
2017-01-19 18:54:54 +03:00
if [ "$DOCKER" == "" ]; then
.travis/script.sh
else
# 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
2017-01-19 18:54:54 +03:00
fi
2017-01-19 18:54:54 +03:00
after_success:
- .travis/after_success.sh