This repository has been archived by the owner on Feb 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
287 lines (256 loc) · 7.26 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
matrix:
include:
# CentOS 6, Qt 5.6, Python 2.6
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos6
- QT_VER=5.6
- PY_VER=2.6
# CentOS 6, Qt 5.6, Python 2.7
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos6
- QT_VER=5.6
- PY_VER=2.7
# CentOS 6, Qt 5.6, Python 3.5
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos6
- QT_VER=5.6
- PY_VER=3.5
# CentOS 6, Qt 5.6, Python 3.6
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos6
- QT_VER=5.6
- PY_VER=3.6
# CentOS 7, Qt 5.6, Python 2.7
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos7
- QT_VER=5.6
- PY_VER=2.7
# CentOS 7, Qt 5.6, Python 3.5
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos7
- QT_VER=5.6
- PY_VER=3.5
# CentOS 7, Qt 5.6, Python 3.6
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=centos7
- QT_VER=5.6
- PY_VER=3.6
# Ubuntu 14.04, Qt 5.6, Python 2.7
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=ubuntu14.04
- QT_VER=5.6
- PY_VER=2.7
# Ubuntu 14.04, Qt 5.6, Python 3.4
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=ubuntu14.04
- QT_VER=5.6
- PY_VER=3.4
# # Ubuntu 14.04, Qt 5.6, Python 3.5
# - os: linux
# dist: trusty
# sudo: required
# language: python
# services:
# - docker
# env:
# - DOCKER_OS=ubuntu14.04
# - QT_VER=5.6
# - PY_VER=3.5
# # Ubuntu 14.04, Qt 5.6, Python 3.6
# - os: linux
# dist: trusty
# sudo: required
# language: python
# services:
# - docker
# env:
# - DOCKER_OS=ubuntu14.04
# - QT_VER=5.6
# - PY_VER=3.6
# Ubuntu 16.04, Qt 5.6, Python 2.7
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=ubuntu16.04
- QT_VER=5.6
- PY_VER=2.7
# Ubuntu 16.04, Qt 5.6, Python 3.5
- os: linux
dist: trusty
sudo: required
language: python
services:
- docker
env:
- DOCKER_OS=ubuntu16.04
- QT_VER=5.6
- PY_VER=3.5
# # Ubuntu 16.04, Qt 5.6, Python 3.6
# - os: linux
# dist: trusty
# sudo: required
# language: python
# services:
# - docker
# env:
# - DOCKER_OS=ubuntu16.04
# - QT_VER=5.6
# - PY_VER=3.6
# OS X 10.10, Xcode 6.4, Qt 5.6, Python 2.7 (pip missing)
- os: osx
osx_image: xcode6.4
language: generic
cache:
pip: true
# directories:
# - $HOME/Library/Caches/Homebrew
env:
- RVM_CERT_FIX=1
- QT_VER=5.6
- PY_VER=2.7
# OS X 10.10, Xcode 6.4, Qt 5.6, Python 3.5
- os: osx
osx_image: xcode6.4
language: generic
cache:
pip: true
# directories:
# - $HOME/Library/Caches/Homebrew
env:
- RVM_CERT_FIX=1
- QT_VER=5.6
- PY_VER=3.5
# OS X 10.10, Xcode 6.4, Qt 5.6, Python 3.6
- os: osx
osx_image: xcode6.4
language: generic
cache:
pip: true
# directories:
# - $HOME/Library/Caches/Homebrew
env:
- RVM_CERT_FIX=1
- QT_VER=5.6
- PY_VER=3.6
before_install:
- pwd
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y tree ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install tree ; fi
- tree
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker build -f Dockerfile-${DOCKER_OS}-qt${QT_VER}-py${PY_VER} -t fredrikaverpil/pyside2-${DOCKER_OS}-qt${QT_VER}-py${PY_VER} . ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then docker run --rm -v $(pwd):/workdir/pyside-setup/dist fredrikaverpil/pyside2-${DOCKER_OS}-qt${QT_VER}-py${PY_VER} ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then chmod +x build_osx_qt${QT_VER}_py${PY_VER}.sh ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./build_osx_qt${QT_VER}_py${PY_VER}.sh ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then mv ~/pyside-setup/dist/*.whl . ; fi
before_script:
- pwd
script:
- ls -alh *.whl
after_success:
- ls -alh
after_failure:
- ls -alh
before_deploy:
# Date
- DEPLOY_DATE=$(date +'%Y-%m-%d')
- sed -i -e "s/@DATE@/${DEPLOY_DATE}/g" bintray.json
# Version
- if [ "$QT_VER" == "5.6" ]; then git clone --recursive --branch 5.6 https://codereview.qt-project.org/pyside/pyside-setup ; fi
- PYSIDE_VERSION=$(awk '/^__version__/{print $NF}' pyside-setup/setup.py | tr -d '"')
- sed -i -e "s/@VERSION@/${PYSIDE_VERSION}/g" bintray.json
# Package name
- echo $TRAVIS_BRANCH
- if [ "$TRAVIS_BRANCH" == "master" ]; then PACKAGE_NAME=pyside2 ; fi
- if [ "$TRAVIS_BRANCH" != "master" ]; then PACKAGE_NAME=development ; fi
- echo $PACKAGE_NAME
- sed -i -e "s/@PACKAGE_NAME@/${PACKAGE_NAME}/g" bintray.json
# Package description
- if [ "$TRAVIS_BRANCH" == "master" ]; then PACKAGE_DESC="PySide2 wheels" ; fi
- if [ "$TRAVIS_BRANCH" != "master" ]; then PACKAGE_DESC="PySide2 wheels from development branches" ; fi
- sed -i -e "s/@PACKAGE_DESC@/${PACKAGE_DESC}/g" bintray.json
# Upload folder: master branch
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then UPLOAD_PATH=$DOCKER_OS/ ; fi
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then UPLOAD_PATH=osx$(sw_vers -productVersion)/ ; fi
# Upload folder: non-master branch
- TRAVIS_BRANCH_REPLACED=$(echo "$TRAVIS_BRANCH" | tr " " _ | tr "/" _)
- if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then UPLOAD_PATH=$TRAVIS_BRANCH_REPLACED/$DOCKER_OS/ ; fi
- if [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_OS_NAME" == "osx" ]; then UPLOAD_PATH=$TRAVIS_BRANCH_REPLACED/osx$(sw_vers -productVersion)/ ; fi
- echo $UPLOAD_PATH
- sed -i -e "s|@UPLOAD_PATH@|${UPLOAD_PATH}|g" bintray.json
deploy:
- provider: bintray
user: fredrikaverpil
file: bintray.json
key:
# api key from https://bintray.com/profile/edit
# encrypted using travis cli tool:
# travis encrypt BINTRAY-API-KEY --add deploy.key
secure: cRLtxBhIu2X/MXYgUednLWmhy/1i0VNa0pHTEv3zuvpqENMsR/lyFuhTize+EqZaD/Ike+TQuG7Vo1OEN01wNITQe8YXNuQPRYfrCKdNLb+vJL9MwNDRRIjlYFyChRD7XJifzWlpiEsJ6WKKJsI+h2ONlQYHyoAQ78tpeG0PkqeIidUtwncaDmJeWEbfTzaPZmoUJS2UznF7Gv6z1Oz6iNXSFVM+sPUzwA59lioM+btuG8CymdSfQxZXTCXRHALC4cLq4B+ut6pcB3CqVhvi3MyNwydX/U5ABDVUM14BHgSYKDCvqthKdq7Fe35yrHWoGeBi+E42o0ee8lwEyj8ZJHlBWkUeKyA3jwHDyb4Aa93TTKvjv6000Vnsd26kKObyVqu5QqQN/vx2gz4JbiXt62GD4YTBVx/T2P3LU8efRpPXf0WWuVnQqwBC9jVWjr1ELjOo4kXbL9q4OHNh/e/aPIbrv2MhpQvw6aqvA2UMZoMqP8Yv5TZkH3ETnYGCdtGbV2nHtFegqp6Cmph+J6nPcGQipdF8OvTgSwxlQay+OMTD5uVRNzQ/Z6VXHgAbqVwEXHNywkZ2ZYXb6U/wuldIyouQoW3m69F+GTREojgbbgpoyj7wF4CkQ5iAmcnpxZBz8scv5uEKVvNwJonc53bCZb9qMQlRFhKWgHRtwtLnJL0=
on:
all_branches: true
repo: fredrikaverpil/pyside2-wheels
override: true
after_deploy:
- ls -alh
- tree
after_script:
- ls -alh