Pillow/.travis.yml
2020-12-28 09:29:25 +11:00

120 lines
3.0 KiB
YAML

env:
global:
- REPO_DIR=Pillow
- BUILD_COMMIT=HEAD
- PLAT=x86_64
- UNICODE_WIDTH=32
- BUILD_DEPENDS=""
- TEST_DEPENDS="pytest pytest-cov"
- MACOSX_DEPLOYMENT_TARGET=10.10
language: python
# Default Python version is usually 3.6
python: 3.8
dist: xenial
services: docker
jobs:
include:
- name: "3.6 Xenial aarch64"
arch: arm64
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.6
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- name: "3.7 Xenial aarch64"
arch: arm64
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.7
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- name: "3.8 Xenial aarch64"
os: linux
arch: arm64
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.8
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- name: "3.9 Xenial aarch64"
os: linux
arch: arm64
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.9
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- name: "3.6 Xenial aarch64 latest"
os: linux
arch: arm64
if: tag IS blank
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.6
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- LATEST="true"
- name: "3.7 Xenial aarch64 latest"
os: linux
arch: arm64
if: tag IS blank
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.7
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- LATEST="true"
- name: "3.8 Xenial aarch64 latest"
os: linux
arch: arm64
if: tag IS blank
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.8
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- LATEST="true"
- name: "3.9 Xenial aarch64 latest"
os: linux
arch: arm64
if: tag IS blank
env:
- PLAT=aarch64
- MB_ML_VER=2014
- MB_PYTHON_VERSION=3.9
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- LATEST="true"
before_install:
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
# Maybe get and clean and patch source
- if [[ -n "$LATEST" ]]; then BUILD_COMMIT=master; fi
- clean_code $REPO_DIR $BUILD_COMMIT
- cat DEPENDENCIES_LICENSE >> Pillow/LICENSE
- build_wheel $REPO_DIR $PLAT
- ls -l "${TRAVIS_BUILD_DIR}/${WHEEL_SDIR}/"
script:
- install_run $PLAT
# Upload wheels to GitHub Releases
deploy:
provider: releases
api_key:
secure: PTgVG7DrYa2FTSQOq0eDaHDZb1vy0vf6MulyuoXMg8rssPQgJ/mYxRpNDK4V0EKolpN7f8s/OGg+fpNNtp5pOCJGsx0Okcf+YB2ac+Xl7DQPBucbDKFXs1ndf/ny6umk0TXX8JTrDp/mJDJf401yx1+qsZ6X/PFvchXvXVrQ+SQ=
file_glob: true
file: "${TRAVIS_BUILD_DIR}/${WHEEL_SDIR}/*.whl"
on:
condition: -z "$LATEST"
repo: python-pillow/pillow-wheels
tags: true
skip_cleanup: true