Pillow/.travis.yml

82 lines
2.3 KiB
YAML
Raw Normal View History

dist: xenial
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
# Run fast lint first to get fast feedback.
# Run slow PyPy* next, 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:
- python: "3.6"
name: "Lint"
env: LINT="true"
2019-04-30 13:34:48 +03:00
- python: "pypy"
2018-12-06 18:27:15 +03:00
name: "PyPy2 Xenial"
2019-04-30 13:34:48 +03:00
- python: "pypy3"
2018-12-06 18:27:15 +03:00
name: "PyPy3 Xenial"
- python: '3.7'
name: "3.7 Xenial"
- python: '2.7'
name: "2.7 Xenial"
- python: "2.7_with_system_site_packages" # For PyQt4
name: "2.7_with_system_site_packages Xenial"
services: xvfb
- python: '3.6'
name: "3.6 Xenial PYTHONOPTIMIZE=1"
env: PYTHONOPTIMIZE=1
- python: '3.5'
name: "3.5 Xenial PYTHONOPTIMIZE=2"
env: PYTHONOPTIMIZE=2
- python: "3.8-dev"
name: "3.8-dev Xenial"
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-16.04-xenial-amd64" DOCKER_TAG="master"
- env: DOCKER="ubuntu-18.04-bionic-amd64" DOCKER_TAG="master"
2019-07-09 23:54:54 +03:00
- env: DOCKER="debian-9-stretch-x86" DOCKER_TAG="master"
- env: DOCKER="debian-10-buster-x86" DOCKER_TAG="master"
2018-12-28 21:59:00 +03:00
- 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"
- env: DOCKER="fedora-29-amd64" DOCKER_TAG="master"
2019-05-02 09:21:34 +03:00
- env: DOCKER="fedora-30-amd64" DOCKER_TAG="master"
2017-01-19 18:54:54 +03:00
services:
- docker
2016-12-21 22:55:45 +03:00
2019-01-15 23:11:27 +03:00
before_install:
- if [ "$DOCKER" ]; then travis_retry docker pull pythonpillow/$DOCKER:$DOCKER_TAG; fi
2017-01-19 18:54:54 +03:00
install:
- |
if [ "$LINT" == "true" ]; then
pip install tox
elif [ "$DOCKER" == "" ]; then
.travis/install.sh;
fi
2016-05-06 18:33:07 +03:00
script:
- |
2018-11-11 22:38:06 +03:00
if [ "$LINT" == "true" ]; then
tox -e lint
2018-11-11 22:38:06 +03:00
elif [ "$DOCKER" == "" ]; then
.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
2017-01-19 18:54:54 +03:00
after_success:
- |
2018-11-11 22:38:06 +03:00
if [ "$LINT" == "" ]; then
.travis/after_success.sh
fi