forked from MacPython/cython-wheels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
171 lines (165 loc) · 4.35 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
language: python
python: 3.6
services: docker
env:
global:
- REPO_DIR=Cython
# Remember to edit appveyor.yml too
# Also see DAILY_COMMIT below
- BUILD_COMMIT=3.0a7
- PLAT=x86_64
- MB_PYTHON_OSX_VER=10.9
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
- BUILD_DEPENDS=
- TEST_DEPENDS=
# Following generated with
# travis encrypt -r MacPython/cython-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
- secure:
"k+rFEWlbje6cBTf9dEvtdTqJ66wgVMTcpy6rSZdHa0A6d21pIyuuKscp/fr++rF9x0DOzXLuuB2g4Wy4HaehGIZYYFrMpW1t8JlQKa6HG8a42AUV2uWPxfVDKdv1tqaJj75Ey+rBy5/gsPIaIIQtpbmwUM/HqzHscxCvpDEE5MU="
# Commit when running from daily branch
- DAILY_COMMIT=master
matrix:
include:
# - os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=3.9
#- os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=3.8
#- os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=3.7
#- os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=2.7
#- os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=3.6
#- os: osx
# language: generic
# env:
# - MB_PYTHON_VERSION=3.5
# - MB_PYTHON_OSX_VER=10.6
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- PLAT=i686
- UNICODE_WIDTH=16
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- PLAT=i686
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.5
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- PLAT=i686
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.6
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- PLAT=i686
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.7
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- PLAT=i686
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.8
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
- os: linux
env:
- MB_PYTHON_VERSION=3.9
- os: linux
env:
- MB_PYTHON_VERSION=3.9
- PLAT=i686
- os: linux
arch: arm64
env:
- MB_PYTHON_VERSION=3.9
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
before_install:
- if [ "$TRAVIS_BRANCH" == "daily" ]; then
CONTAINER="pre-release";
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
else
CONTAINER=wheels;
UPLOAD_ARGS="--no-update-index";
fi
- 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
- PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/${MB_PYTHON_VERSION}/bin build_wheel $REPO_DIR $PLAT
# Add Travis build number to wheel name for daily builds
- if [ "$TRAVIS_BRANCH" == "daily" ]; then
python add_build_no.py -r -s + $TRAVIS_BUILD_NUMBER $WHEEL_SDIR/*.whl ;
fi
- ls -l $PWD/$WHEEL_SDIR/*.whl
script:
- PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/${MB_PYTHON_VERSION}/bin install_run $PLAT
deploy:
provider: releases
api_key:
secure: KvDNzF0BiR2ExM4+Ab0m0xEbuVIvTCKyWZdUBt8zSOH6x+wva2lAuWGX3JJV45tzmo6qTk6kxTk0pm5hmWDeYRNnCl+Gub8PpAsFciBtj8wfLfqBXfJdX/C7LDIAnyyIXcnrsEOGa4yOfTZpmimQSMUUhaPDoSI8IBPypA/mSNo=
file_glob: true
file: "${TRAVIS_BUILD_DIR}/${WHEEL_SDIR}/*.whl"
skip_cleanup: true
on:
repo: MacPython/cython-wheels
tags: true