-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
91 lines (80 loc) · 2.42 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
env:
global:
- REPO_DIR=yt
# Commit from your-project that you want to build
- BUILD_COMMIT=yt-3.6.1
# Non-numpy or testing dependencies
- GEN_DEPENDS="setuptools sympy matplotlib"
- PLAT=x86_64
- UNICODE_WIDTH=32
language: python
# The travis Python version is unrelated to the version we build and test
# with. This is set with the MB_PYTHON_VERSION variable.
python: 3.5
sudo: required
dist: trusty
services: docker
before_install:
- BUILD_DEPENDS="$NP_BUILD_DEP Cython"
- TEST_DEPENDS="$NP_TEST_DEP nose $GEN_DEPENDS"
- 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
jobs:
include:
- stage: tests
os: linux
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.15.4
- NP_TEST_DEP=numpy==1.15.4
- stage: tests
os: linux
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.16.5
- NP_TEST_DEP=numpy==1.16.5
- stage: tests
os: linux
env:
- MB_PYTHON_VERSION=3.8
- NP_BUILD_DEP=numpy==1.17.5
- NP_TEST_DEP=numpy==1.17.5
- stage: tests
os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.6
- NP_BUILD_DEP=numpy==1.15.4
- NP_TEST_DEP=numpy==1.15.4
- stage: tests
os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.7
- NP_BUILD_DEP=numpy==1.16.5
- NP_TEST_DEP=numpy==1.16.5
- stage: tests
os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.8
- NP_BUILD_DEP=numpy==1.17.5
- NP_TEST_DEP=numpy==1.17.5
script:
- install_run $PLAT
after_success:
# Upload the generated wheels to anaconda.org/multibuild-wheels-staging
# using YT_STAGING_UPLOAD_TOKEN which is set as an environment variable
# in the travis CI configuration settings. The current token was generated
# by munkm at https://anaconda.org/multibuild-wheels-staging/settings/access
#
- TOKEN=${YT_STAGING_UPLOAD_TOKEN};
- python -m pip install git+https://github.com/Anaconda-Server/anaconda-client;
- if [ -n "${TOKEN}" ] ; then
anaconda -t ${TOKEN} upload -u "multibuild-wheels-staging" ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
fi