blob: 3accda7e489a16e0d0ae6f3dc8dd99f6b5f89cac (
plain)
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
|
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
group: travis_latest
os: linux
dist: focal
# Travis allows these packages, additions can be requested
# https://github.com/travis-ci/apt-package-safelist
addons:
apt:
packages: &common_packages
- gfortran
- libgfortran5
- libatlas-base-dev
# Speedup builds, particularly when USE_CHROOT=1
- eatmydata
# Disable clone depth
git:
depth: false
cache:
directories:
- $HOME/.cache/pip
jobs:
include:
- python: "3.8"
os: linux
arch: ppc64le
env:
# use OpenBLAS build, not system ATLAS
- DOWNLOAD_OPENBLAS=1
- NPY_USE_BLAS_ILP64=1
- ATLAS=None
- python: "3.8"
os: linux
arch: s390x
env:
# use OpenBLAS build, not system ATLAS
- DOWNLOAD_OPENBLAS=1
- NPY_USE_BLAS_ILP64=1
- ATLAS=None
# Wheel builders
# TODO: de-dup env vars in between steps?
- python: "3.8"
os: linux
arch: arm64
virt: vm
env:
- CIBW_BUILD: cp38-manylinux_aarch64
- CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
- CIBW_BUILD_VERBOSITY: 3
- CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'"
- CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'"
- CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'"
# Workaround Travis limitations
# set each variable separately and use cibw pass env to pass through
- CFLAGS: "'-std=c99 -fno-strict-aliasing'"
- LDFLAGS: "'-Wl,--strip-debug'"
- OPENBLAS64_: /usr/local
- RUNNER_OS: Linux
- CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'"
install: python3 -m pip install cibuildwheel==2.3.1
script: |
cibuildwheel --output-dir dist
source ./tools/wheels/upload_wheels.sh
set_travis_vars
set_upload_vars
upload_wheels # Will be skipped if not a push/tag/scheduled build
- python: "3.9"
os: linux
arch: arm64
virt: vm
env:
- CIBW_BUILD: cp39-manylinux_aarch64
- CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
- CIBW_BUILD_VERBOSITY: 3
- CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'"
- CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'"
- CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'"
# Workaround Travis limitations
# set each variable separately and use cibw pass env to pass through
- CFLAGS: "'-std=c99 -fno-strict-aliasing'"
- LDFLAGS: "'-Wl,--strip-debug'"
- OPENBLAS64_: /usr/local
- RUNNER_OS: Linux
- CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'"
install: python3 -m pip install cibuildwheel==2.3.1
script: |
cibuildwheel --output-dir dist
source ./tools/wheels/upload_wheels.sh
set_travis_vars
set_upload_vars
upload_wheels # Will be skipped if not a push/tag/scheduled build
- python: "3.10"
os: linux
arch: arm64
virt: vm
env:
- CIBW_BUILD: cp310-manylinux_aarch64
- CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014
- CIBW_BUILD_VERBOSITY: 3
- CIBW_BEFORE_BUILD: "'bash {project}/tools/wheels/cibw_before_build.sh {project}'"
- CIBW_BEFORE_TEST: "'pip install -r {project}/test_requirements.txt'"
- CIBW_TEST_COMMAND: "'bash {project}/tools/wheels/cibw_test_command.sh {project}'"
# Workaround Travis limitations
# set each variable separately and use cibw pass env to pass through
- CFLAGS: "'-std=c99 -fno-strict-aliasing'"
- LDFLAGS: "'-Wl,--strip-debug'"
- OPENBLAS64_: /usr/local
- RUNNER_OS: Linux
- CIBW_ENVIRONMENT_PASS_LINUX: "'CFLAGS LDFLAGS OPENBLAS64_ RUNNER_OS'"
install: python3 -m pip install cibuildwheel==2.3.1
script: |
cibuildwheel --output-dir dist
source ./tools/wheels/upload_wheels.sh
set_travis_vars
set_upload_vars
upload_wheels # Will be skipped if not a push/tag/scheduled build
before_install:
- ./tools/travis-before-install.sh
script:
- ./tools/travis-test.sh
|