This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
142 lines (135 loc) · 4.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
env:
global:
- REPO_DIR="scikit-image"
# Also see DAILY_COMMIT below
- BUILD_COMMIT=master
- PLAT=x86_64
- UNICODE_WIDTH=32
- NP_BUILD_DEP="numpy==1.14.5"
- NP_TEST_DEP="numpy==1.14.5"
- GEN_DEPS="matplotlib networkx scipy pillow"
# Commit when running from daily branch
- DAILY_COMMIT=master
language: python
# Default Python version is usually 2.7
python: 3.7
sudo: required
dist: bionic
services: docker
notifications:
email:
recipients:
matrix:
exclude:
# Exclude the default Python 3.5 build
- python: 3.5
include:
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- NP_BUILD_DEP: "numpy==1.17.3"
- NP_TEST_DEP: "numpy==1.17.3"
- os: linux
arch: arm64-graviton2
dist: focal
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.6
- MB_ML_VER=2014
- PLAT=aarch64
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- NP_BUILD_DEP="numpy==1.19.2"
- NP_TEST_DEP="numpy==1.19.2"
- os: linux
arch: arm64-graviton2
dist: focal
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.7
- MB_ML_VER=2014
- PLAT=aarch64
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- NP_BUILD_DEP="numpy==1.19.2"
- NP_TEST_DEP="numpy==1.19.2"
- os: linux
arch: arm64-graviton2
dist: focal
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.8
- MB_ML_VER=2014
- PLAT=aarch64
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- NP_BUILD_DEP="numpy==1.19.2"
- NP_TEST_DEP="numpy==1.19.2"
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.6
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.8
- MB_PYTHON_OSX_VER=10.9
- NP_BUILD_DEP: "numpy==1.17.3"
- NP_TEST_DEP: "numpy==1.17.3"
allow_failures:
# Matplotlib is failing to release 32 bit wheels for linux.
# This makes it difficult for us to compile.
# https://github.com/MacPython/matplotlib-wheels/pull/9
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- PLAT=i686
- NP_BUILD_DEP: "numpy==1.17.3"
- NP_TEST_DEP: "numpy==1.17.3"
before_install:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
fi
# The devel branch seems necessary for python 3.8 on OSX
- git clone --depth 1 --branch devel https://github.com/matthew-brett/multibuild.git
- git clone --depth 1 --branch $BUILD_COMMIT https://github.com/scikit-image/scikit-image.git
- BUILD_DEPENDS="$NP_BUILD_DEP Cython"
- TEST_DEPENDS="$NP_TEST_DEP $GEN_DEPS -r $REPO_DIR/requirements/test.txt"
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
# Maybe get and clean and patch source
- clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_success:
# Upload the generated wheel package to anaconda.org
# SKIMAGE_STAGING_UPLOAD_TOKEN is an encrypted variable
# used in Appveyor CI config, originally created at
# multibuild-wheels-staging site
- pip install git+https://github.com/Anaconda-Server/anaconda-client;
- if [ "$TRAVIS_BRANCH" == "master" ]; then
source extra_functions.sh;
for f in wheelhouse/*.whl; do rename_wheel $f; done;
ANACONDA_ORG="scipy-wheels-nightly";
TOKEN=${SKIMAGE_NIGHTLY_UPLOAD_TOKEN};
else
ANACONDA_ORG="multibuild-wheels-staging";
TOKEN=${SKIMAGE_STAGING_UPLOAD_TOKEN};
fi
- if [ -n "${TOKEN}" ] ; then
anaconda -t ${TOKEN} upload -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
fi