-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (92 loc) · 2.7 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
env:
global:
- REPO_DIR=matplotlib
# Also see DAILY_COMMIT below
- BUILD_COMMIT=v3.2.1
# These variables filled in further below
- BUILD_DEPENDS=
- TEST_DEPENDS=
- UNICODE_WIDTH=32
- NP_BUILD_DEP=1.16
- NP_TEST_DEP=1.16
#- MANYLINUX_URL=https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com
- MANYLINUX_URL=quay.io/pypa/manylinux2014_aarch64
# Following generated with
# travis encrypt -r MacPython/matplotlib-wheels \
# WHEELHOUSE_UPLOADER_SECRET=<the api key>
# Matplotlib commit when running from master branch
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- DAILY_COMMIT=master
- MB_ML_VER=2014
language: python
# Default Python version is usually 2.7
python: 3.7
dist: bionic
services: docker
jobs:
include:
- os: linux
arch: arm64-graviton2
dist: focal
virt: lxd
group: edge
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=1.16
- NP_TEST_DEP=1.16
- PLAT=aarch64
#- os: linux
#arch: arm64-graviton2
#dist: focal
#virt: lxd
#group: edge
#env:
#- MB_PYTHON_VERSION=3.8
#- NP_BUILD_DEP=1.16
#- NP_TEST_DEP=1.16
#- PLAT=aarch64
#- os: linux
#arch: arm64-graviton2
#dist: focal
#virt: lxd
#group: edge
#env:
#- MB_PYTHON_VERSION=3.9
#- NP_BUILD_DEP=1.16
#- NP_TEST_DEP=1.16
#- PLAT=aarch64
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=1.16
- NP_TEST_DEP=1.16
- PLAT=aarch64
before_install:
# See:
# https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
- if [ "$TRAVIS_BRANCH" == "master" ]; then
CONTAINER="pre-release";
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
else
CONTAINER=wheels;
UPLOAD_ARGS="--no-update-index";
fi
- BUILD_DEPENDS="numpy==$NP_BUILD_DEP"
- 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
# Remove test images
- pip install delocate
- python rm_test_images.py wheelhouse/*.whl
script:
- TEST_DEPENDS="numpy==$NP_TEST_DEP sphinx pytest pytest-timeout pytest-xdist pytest-faulthandler pytest-rerunfailures requests[security]"
# increase number of open files allowed for tests, on OSX
# https://github.com/matplotlib/matplotlib/issues/3315
- ulimit -n 4096
- install_run $PLAT