2014-06-28 20:30:10 +04:00
|
|
|
env:
|
2015-09-18 23:41:42 +03:00
|
|
|
global:
|
2016-06-20 21:30:30 +03:00
|
|
|
- REPO_DIR=Pillow
|
2016-10-03 18:11:43 +03:00
|
|
|
- BUILD_COMMIT=HEAD
|
2016-06-20 21:30:30 +03:00
|
|
|
- PLAT=x86_64
|
|
|
|
- UNICODE_WIDTH=32
|
|
|
|
- BUILD_DEPENDS=""
|
2018-12-20 12:46:53 +03:00
|
|
|
- TEST_DEPENDS="pytest pytest-cov numpy"
|
2018-10-13 13:54:45 +03:00
|
|
|
- MACOSX_DEPLOYMENT_TARGET=10.10
|
2016-06-20 21:30:30 +03:00
|
|
|
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
|
|
|
|
# Following generated with
|
|
|
|
# travis encrypt -r python-pillow/pillow-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
|
|
|
|
- secure: "ky76goiK6n4k8V9/uG340GSFVwmjE7G76l9xbhhGZkcph4eTwN5VRM/tqyJvlNs/HZOhKSILfyGBeaG8qf7gHmwr0touPT+EjWn4TNV8iyVj75ZshgRE9DuaIAfdH89gW2m+BmvBDyzi0JE3KVCu55NcGm8h7Ecl6nmQ/c2iROY="
|
|
|
|
|
|
|
|
language: python
|
2016-06-24 21:30:12 +03:00
|
|
|
# Default Python version is usually 2.7
|
|
|
|
python: 3.5
|
2019-04-01 16:58:50 +03:00
|
|
|
dist: xenial
|
2016-06-20 21:30:30 +03:00
|
|
|
services: docker
|
2019-12-24 08:43:26 +03:00
|
|
|
osx_image: xcode9.3
|
2016-06-20 21:30:30 +03:00
|
|
|
|
|
|
|
matrix:
|
2016-06-24 21:30:12 +03:00
|
|
|
exclude:
|
|
|
|
# Exclude the default Python 3.5 build
|
|
|
|
- python: 3.5
|
2016-06-20 21:30:30 +03:00
|
|
|
include:
|
2019-07-22 15:57:52 +03:00
|
|
|
- name: "3.5 macOS"
|
|
|
|
os: osx
|
2019-01-15 22:54:14 +03:00
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.5
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.6 macOS"
|
|
|
|
os: osx
|
|
|
|
language: generic
|
2016-06-24 21:30:12 +03:00
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.6
|
|
|
|
|
|
|
|
- name: "3.5 Xenial"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
2016-06-20 21:30:30 +03:00
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.5
|
|
|
|
- name: "3.5 Xenial 32-bit"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
2016-06-20 21:30:30 +03:00
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.5
|
2016-06-20 21:30:30 +03:00
|
|
|
- PLAT=i686
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.6 Xenial"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
2016-06-20 21:30:30 +03:00
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.6
|
|
|
|
- name: "3.6 Xenial 32-bit"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
2017-10-02 17:16:09 +03:00
|
|
|
env:
|
2017-12-27 22:24:36 +03:00
|
|
|
- MB_PYTHON_VERSION=3.6
|
2019-10-22 21:52:45 +03:00
|
|
|
- PLAT=i686
|
|
|
|
|
2019-07-22 15:57:52 +03:00
|
|
|
- name: "3.7 macOS"
|
|
|
|
os: osx
|
2018-04-23 18:55:07 +03:00
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
2019-10-18 12:47:40 +03:00
|
|
|
- name: "3.8 macOS"
|
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
2017-10-02 17:16:09 +03:00
|
|
|
|
2019-07-22 15:57:52 +03:00
|
|
|
- name: "3.7 Xenial"
|
|
|
|
os: linux
|
2018-04-23 18:55:07 +03:00
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
2019-07-22 15:57:52 +03:00
|
|
|
- name: "3.7 Xenial 32-bit"
|
|
|
|
os: linux
|
2018-04-23 18:55:07 +03:00
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
|
|
|
- PLAT=i686
|
2019-10-18 12:47:40 +03:00
|
|
|
- name: "3.8 Xenial"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
|
|
|
- name: "3.8 Xenial 32-bit"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
|
|
|
- PLAT=i686
|
2017-10-02 17:16:09 +03:00
|
|
|
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.5 macOS latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.5
|
2019-07-22 15:57:52 +03:00
|
|
|
- LATEST="true"
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.6 macOS latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.6
|
2019-07-22 15:57:52 +03:00
|
|
|
- LATEST="true"
|
|
|
|
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.5 Xenial latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.5
|
2019-07-22 15:57:52 +03:00
|
|
|
- LATEST="true"
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.5 Xenial 32-bit latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.5
|
2019-07-22 15:57:52 +03:00
|
|
|
- PLAT=i686
|
|
|
|
- LATEST="true"
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.6 Xenial latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
|
|
|
env:
|
2019-10-22 21:52:45 +03:00
|
|
|
- MB_PYTHON_VERSION=3.6
|
2019-07-22 15:57:52 +03:00
|
|
|
- LATEST="true"
|
2019-10-22 21:52:45 +03:00
|
|
|
- name: "3.6 Xenial 32-bit latest"
|
2019-07-22 15:57:52 +03:00
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.6
|
2019-10-22 21:52:45 +03:00
|
|
|
- PLAT=i686
|
2019-07-22 15:57:52 +03:00
|
|
|
- LATEST="true"
|
2019-10-22 21:52:45 +03:00
|
|
|
|
2019-07-22 15:57:52 +03:00
|
|
|
- name: "3.7 macOS latest"
|
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
|
|
|
- LATEST="true"
|
2019-10-18 12:47:40 +03:00
|
|
|
- name: "3.8 macOS latest"
|
|
|
|
os: osx
|
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
|
|
|
- LATEST="true"
|
2019-07-22 15:57:52 +03:00
|
|
|
|
|
|
|
- name: "3.7 Xenial latest"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
|
|
|
- LATEST="true"
|
|
|
|
- name: "3.7 Xenial 32-bit latest"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.7
|
|
|
|
- PLAT=i686
|
|
|
|
- LATEST="true"
|
2019-10-18 12:47:40 +03:00
|
|
|
- name: "3.8 Xenial latest"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
|
|
|
- LATEST="true"
|
|
|
|
- name: "3.8 Xenial 32-bit latest"
|
|
|
|
os: linux
|
|
|
|
env:
|
|
|
|
- MB_PYTHON_VERSION=3.8
|
|
|
|
- PLAT=i686
|
|
|
|
- LATEST="true"
|
2019-07-22 15:57:52 +03:00
|
|
|
|
2016-06-20 21:30:30 +03:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- source multibuild/common_utils.sh
|
|
|
|
- source multibuild/travis_steps.sh
|
|
|
|
- before_install
|
2014-06-28 20:30:10 +04:00
|
|
|
|
|
|
|
install:
|
2016-06-20 21:30:30 +03:00
|
|
|
# Maybe get and clean and patch source
|
2019-10-22 12:39:06 +03:00
|
|
|
- if [[ -n "$LATEST" ]]; then BUILD_COMMIT=master; fi
|
2016-06-20 21:30:30 +03:00
|
|
|
- clean_code $REPO_DIR $BUILD_COMMIT
|
|
|
|
- build_wheel $REPO_DIR $PLAT
|
2014-06-28 20:30:10 +04:00
|
|
|
|
|
|
|
script:
|
2016-06-20 21:30:30 +03:00
|
|
|
- install_run $PLAT
|
2015-09-18 23:41:42 +03:00
|
|
|
|
2016-06-20 21:30:30 +03:00
|
|
|
after_success:
|
|
|
|
# Upload wheels to Rackspace container
|
2019-07-22 15:57:52 +03:00
|
|
|
- if [[ -z "$LATEST" ]]; then
|
|
|
|
pip install wheelhouse-uploader;
|
|
|
|
python -m wheelhouse_uploader upload --local-folder
|
2016-06-20 21:30:30 +03:00
|
|
|
${TRAVIS_BUILD_DIR}/wheelhouse/
|
|
|
|
--no-update-index
|
2019-07-22 15:57:52 +03:00
|
|
|
wheels;
|
|
|
|
fi
|