-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (66 loc) · 2.1 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
language: python
dist: xenial
notifications:
email: false
addons:
apt:
packages:
- libhdf5-serial-dev
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/hdf5
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
env:
global:
- HDF5_CACHE_DIR=$HOME/.cache/hdf5
matrix:
include:
# needed to work around https://github.com/travis-ci/travis-ci/issues/4794
# TODO: We should see if we can replace this with installing python via pyenv # based on toxenv
# Test on ppc64le
- python: 3.7
env:
- TOXENV=py37-test-deps
# NumPy 1.21.5 fails to compile: https://github.com/numpy/numpy/issues/20761
- TOX_OPTS="--force-dep numpy!=1.21.5"
- HDF5_VERSION=1.10.5
- HDF5_DIR=$HDF5_CACHE_DIR/$HDF5_VERSION
- H5PY_ENFORCE_COVERAGE=yes
os: linux-ppc64le
- os: linux
services: docker
python: 3.7
virt: vm
group: edge
arch: arm64
env:
- TOXENV=py37-test-deps
- TOX_OPTS=""
- HDF5_VERSION=1.10.5
- HDF5_DIR=$HDF5_CACHE_DIR/$HDF5_VERSION
- H5PY_ENFORCE_COVERAGE=yes
- CIBW_BUILD: cp3*-manylinux*
- CIBW_MANYLINUX_AARCH64_IMAGE: ghcr.io/h5py/manylinux2014_aarch64-hdf5
- CIBW_ARCHS: aarch64
before_install:
# - export PATH=/usr/lib/ccache:$PATH
- ccache -s
install:
- pip install -U tox codecov virtualenv
- ci/get_hdf5_if_needed.sh
- ls -lRa $HDF5_CACHE_DIR
- if [[ $CIBW_ARCHS == aarch64 ]]; then python -m pip install cibuildwheel; fi
script:
- if [[ $CIBW_ARCHS == aarch64 ]]; then python3 -m cibuildwheel --output-dir wheelhouse; fi
- tox $TOX_OPTS
after_success:
- python ci/upload_coverage.py
# trigger an upload to the shared ecosystem
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
# for cron jobs only (restricted to master branch once
# per week)
# ANACONDA_ORG_UPLOAD_TOKEN is a secret token
# used in Travis CI config, originally
# generated at anaconda.org for scipy-wheels-nightly (cron jobs).
- if [[ $CIBW_ARCHS == aarch64 ]]; then bash ci/upload_wheels.sh; fi