This repository was archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
119 lines (108 loc) · 3.27 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
env:
global:
- REPO_DIR=numpy
# Also see CRON_COMMIT below
- BUILD_COMMIT=main
- BUILD_DEPENDS=cython==0.29.30
- TEST_DEPENDS="\
pytest hypothesis cffi pytz \
mypy==0.950 \
typing_extensions>=4.2.0"
# Commit when running from cron job
- CRON_COMMIT=main
- EXTRA_ARGV="'--disable-pytest-warnings'"
language: python
#dist: bionic
dist: focal
services: docker
os: linux
# Disable clone depth to make sure versioneer
# can find the most recent tag.
git:
depth: false
jobs:
include:
- os: linux
arch: arm64
env:
- PLAT=aarch64
- MB_PYTHON_VERSION="3.8"
- MB_ML_VER=2014
- CONFIG_PATH: "config_ilp64.sh"
- DEBUG_PRINT=1
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- NPY_AVAILABLE_MEM=4GiB
- os: linux
arch: arm64
env:
- PLAT=aarch64
- MB_PYTHON_VERSION="3.9"
- MB_ML_VER=2014
- CONFIG_PATH: "config_ilp64.sh"
- DEBUG_PRINT=1
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
- NPY_AVAILABLE_MEM=4GiB
- os: linux
arch: arm64
env:
- PLAT=aarch64
- MB_PYTHON_VERSION="3.10"
- MB_ML_VER=2014
- CONFIG_PATH: "config_ilp64.sh"
- DEBUG_PRINT=1
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
- NPY_AVAILABLE_MEM=4GiB
- os: linux
arch: arm64
env:
- AZURE_PYTHON_VERSION="3.10"
- PLAT=aarch64
- MB_PYTHON_VERSION="3.11"
- MB_ML_VER=2014
- CONFIG_PATH: "config_ilp64.sh"
- DEBUG_PRINT=1
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
- NPY_AVAILABLE_MEM=4GiB
before_install:
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
CONTAINER="pre-release";
BUILD_COMMIT=${CRON_COMMIT};
NPY_RELAXED_STRIDES_DEBUG=1;
else
CONTAINER=wheels;
fi
# Set DEBUG_PRINT environment variable in settings
- if [ -n "${DEBUG_PRINT}" ]; then set -x; fi
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- source extra_functions.sh
- before_install
install:
# Maybe get and clean and patch source
- clean_code $REPO_DIR $BUILD_COMMIT
- ./patch_code.sh $REPO_DIR
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_success:
# trigger an upload to the shared ecosystem
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
# for cron jobs only (restricted to main branch once
# per week)
# The tokens are set from
# https://travis-ci.com/github/MacPython/numpy-wheels/settings
# originally generated at
# anaconda.org/scipy-wheels-nightly/settings/access
# and
# anaconda.org/multibuild-wheels-staging/settings/access
- if [ "$TRAVIS_BRANCH" == "main" ] ; then
ANACONDA_ORG="scipy-wheels-nightly";
TOKEN=${NUMPY_NIGHTLY_UPLOAD_TOKEN};
else
ANACONDA_ORG="multibuild-wheels-staging";
TOKEN=${NUMPY_STAGING_UPLOAD_TOKEN};
fi
- pip install git+https://github.com/Anaconda-Server/[email protected];
- if [ -n "${TOKEN}" ] ; then
anaconda -t ${TOKEN} upload --skip -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
fi