Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit cf968da

Browse files
committed
revamp travis.yml for pypy, aarch64
1 parent 6d8dcd6 commit cf968da

File tree

5 files changed

+93
-176
lines changed

5 files changed

+93
-176
lines changed

.travis.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
env:
2+
global:
3+
- REPO_DIR=numpy
4+
# Also see DAILY_COMMIT below
5+
- BUILD_COMMIT=e94cec800304a6a467cf90ce4e7d3e207770b4b4
6+
- BUILD_DEPENDS=cython==0.29.16
7+
- TEST_DEPENDS="pytest hypothesis cffi pytz"
8+
# Commit when running from daily branch
9+
- DAILY_COMMIT=master
10+
- EXTRA_ARGV="'--disable-pytest-warnings'"
11+
12+
language: python
13+
dist: bionic
14+
services: docker
15+
os: linux
16+
17+
jobs:
18+
include:
19+
- os: linux
20+
arch: x86_64
21+
env:
22+
- PLAT=aarch64
23+
- MB_ML_VER=2010
24+
- MB_PYTHON_VERSION=pypy-3.6
25+
- os: osx
26+
env:
27+
- PLAT=x86_64
28+
- MB_PYTHON_VERSION=pypy-3.6
29+
- MB_PYTHON_OSX_VER=10.9
30+
- os: linux
31+
arch: arm64
32+
env:
33+
- PLAT=aarch64
34+
- MB_ML_VER=2014
35+
- MB_PYTHON_VERSION=3.6
36+
- DEBUG_PRINT=1
37+
- os: linux
38+
arch: arm64
39+
env:
40+
- PLAT=aarch64
41+
- MB_ML_VER=2014
42+
- MB_PYTHON_VERSION=3.8
43+
- DEBUG_PRINT=1
44+
- os: linux
45+
arch: arm64
46+
env:
47+
- PLAT=aarch64
48+
- MB_ML_VER=2014
49+
- MB_PYTHON_VERSION=3.7
50+
- DEBUG_PRINT=1
51+
52+
before_install:
53+
- if [ "$TRAVIS_BRANCH" == "master" ]; then
54+
CONTAINER="pre-release";
55+
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
56+
NPY_RELAXED_STRIDES_DEBUG=1;
57+
else
58+
CONTAINER=wheels;
59+
fi
60+
# Set DEBUG_PRINT environment variable in settings
61+
- if [ -n "${DEBUG_PRINT}" ]; then set -x; fi
62+
- source multibuild/common_utils.sh
63+
- source multibuild/travis_steps.sh
64+
- source extra_functions.sh
65+
- before_install
66+
67+
install:
68+
# Maybe get and clean and patch source
69+
- clean_code $REPO_DIR $BUILD_COMMIT
70+
- ./patch_code.sh $REPO_DIR
71+
- build_wheel $REPO_DIR $PLAT
72+
73+
script:
74+
- install_run $PLAT
75+
76+
after_success:
77+
# trigger an upload to the shared ecosystem
78+
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
79+
# for cron jobs only (restricted to master branch once
80+
# per week)
81+
# The tokens are set from
82+
# https://travis-ci.org/github/MacPython/numpy-wheels/settings
83+
# originally generated at
84+
# anaconda.org/scipy-wheels-nightly/settings/access
85+
- if [ "$TRAVIS_BRANCH" == "master" ]; then
86+
ANACONDA_ORG="scipy-wheels-nightly";
87+
TOKEN=${NUMPY_NIGHTLY_UPLOAD_TOKEN}
88+
else
89+
ANACONDA_ORG="multibuild-wheels-staging";
90+
TOKEN=${NUMPY_STAGING_UPLOAD_TOKEN}
91+
fi
92+
- pip install git+https://github.com/Anaconda-Server/anaconda-client
93+
- anaconda -t ${TOKEN} upload u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;

.travis.yml.back

Lines changed: 0 additions & 153 deletions
This file was deleted.

travis_before_install.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

travis_install.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

travis_script.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)