forked from supercollider/supercollider
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
366 lines (337 loc) · 9.87 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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
language: cpp
matrix:
fast_finish: true
include:
# Summary:
#
# Linux jobs: gcc {6, 7, 8, 9, 10, 9-shared-libscsynth, 9-minus-gui-and-lint, [9-using-syslibs]}
# clang {4, 5, 6, 7, 8, 9, 10}
# gcc 6, clang 4 are on xenial, all others on bionic
#
# macOS jobs: xcode 10.1, xcode 11.3, xcode 11.3-using-syslibs, xcode 11.3-shared-libscsynth
# xcode 10 is on High Sierra 10.13, xcode 11 are on Mojave 10.14
#
# macOS is deployed from the plain xcode 11.3 job
# macOS jobs (taking longer time to finish) run first to decrease overall build time
# macOS 10.13 xcode10 legacy build with qt 5.9
- os: osx
osx_image: xcode10.1
env:
- JOB_NAME="macos xcode10.1 legacy build with qt 5.9"
- IS_LEGACY_BUILD=true
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
- S3_DEPLOY_PREFIX="SC-legacy-" # turn on S3 deployment
- GITHUB_DEPLOY_SUFFIX="-macOS-legacy" # turn on Github deployment
# macOS 10.14 xcode11
- os: osx
osx_image: xcode11.3
env:
- JOB_NAME="macos xcode11.3"
- IS_LEGACY_BUILD=false
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
- S3_DEPLOY_PREFIX="SC-" # turn on S3 deployment
- GITHUB_DEPLOY_SUFFIX="-macOS" # turn on Github deployment
# macOS 10.14 xcode11 use_syslibs
- os: osx
osx_image: xcode11.3
env:
- JOB_NAME="macos xcode11.3 with syslibs"
- IS_LEGACY_BUILD=false
- QT=true
- DO_LINT=false
- USE_SYSLIBS=true
- SHARED_LIBSCSYNTH=false
# macOS 10.14 xcode11 shared_scsynth (LIBSCSYNTH)
- os: osx
osx_image: xcode11.3
env:
- JOB_NAME="macos xcode11.3 with shared libscsynth"
- IS_LEGACY_BUILD=false
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=true
# Ubuntu 16.04 gcc6
- os: linux
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- JOB_NAME="xenial gcc6"
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc7
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- JOB_NAME="bionic gcc7"
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc8
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- JOB_NAME="bionic gcc8"
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc9
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- JOB_NAME="bionic gcc9"
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc10
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-10
env:
- JOB_NAME="bionic gcc10"
- MATRIX_EVAL="CC=gcc-10 && CXX=g++-10"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc9 shared libscsynth (LIBSCSYNTH=ON)
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- JOB_NAME="bionic gcc9 with libscsynth"
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=true
# Ubuntu 18.04 gcc9 no QT (linting)
- os: linux
dist: bionic
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
env:
- JOB_NAME="bionic gcc9 no Qt with linting"
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- QT=false
- DO_LINT=true
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 gcc9 use syslibs
# This is disabled because Ubuntu 18.04 doesn't have an up to date version
# of Boost easily available.
#- os: linux
# dist: bionic
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - g++-9
# env:
# - JOB_NAME="bionic gcc9 no Qt with linting"
# - MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
# - QT=true
# - DO_LINT=false
# - USE_SYSLIBS=true
# Ubuntu 16.04 clang4 (no ableton)
- os: linux
dist: xenial
env:
- JOB_NAME="xenial clang4.0"
- CLANG_VERSION=4.0
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang5
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang5.0"
- CLANG_VERSION=5.0
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang6
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang6.0"
- CLANG_VERSION=6.0
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang7
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang7"
- CLANG_VERSION=7
- MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang8
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang8"
- CLANG_VERSION=8
- MATRIX_EVAL="CC=clang-8 && CXX=clang++-8"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang9
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang9"
- CLANG_VERSION=9
- MATRIX_EVAL="CC=clang-9 && CXX=clang++-9"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# Ubuntu 18.04 clang10
- os: linux
dist: bionic
env:
- JOB_NAME="bionic clang10"
- CLANG_VERSION=10
- MATRIX_EVAL="CC=clang-10 && CXX=clang++-10"
- QT=true
- DO_LINT=false
- USE_SYSLIBS=false
- SHARED_LIBSCSYNTH=false
# use ccache to speed up build times. on osx,
# we install it during the the before_install step
# with xcode, this requires an additional flag passed during the configuration phase.
# see README_MACOS.md for details.
cache:
ccache: true
directories:
- ../downloads
before_install:
- eval "$MATRIX_EVAL"
- echo "JOB NAME - $JOB_NAME"
- $TRAVIS_BUILD_DIR/.travis/before-install-$TRAVIS_OS_NAME.sh --qt=$QT
before_script:
- mkdir BUILD && cd BUILD
# Remove the "Version-" prefix.
- export VERSION_TO_BUILD=${TRAVIS_TAG##Version-}
- $TRAVIS_BUILD_DIR/.travis/before-script-$TRAVIS_OS_NAME.sh --qt=$QT
# prep for testing
- if [[ $QT == true ]]; then $TRAVIS_BUILD_DIR/.travis/qpm-prep.sh; fi
script:
- $TRAVIS_BUILD_DIR/.travis/script-$TRAVIS_OS_NAME.sh
- $TRAVIS_BUILD_DIR/.travis/test.sh
- export S3_ARTIFACT_NAME=${S3_DEPLOY_PREFIX}${TRAVIS_COMMIT}
- export GITHUB_ARTIFACT_NAME=SuperCollider-${VERSION_TO_BUILD}${GITHUB_DEPLOY_SUFFIX}
# only on osx for now
- if [[ -n "$S3_DEPLOY_PREFIX" || -n "$GITHUB_DEPLOY_SUFFIX" ]]; then $TRAVIS_BUILD_DIR/.travis/package-$TRAVIS_OS_NAME.sh; fi
before_deploy:
# required for github releases
- export BUILD_PREFIX=$TRAVIS_REPO_SLUG/$TRAVIS_OS_NAME
- export S3_BUILDS_LOCATION=builds/$BUILD_PREFIX
- export S3_URL=https://supercollider.s3.amazonaws.com/$S3_BUILDS_LOCATION/$S3_ARTIFACT_NAME.zip
- export FWD_HTML='<html><head><meta http-equiv="refresh" content="0; url='$S3_URL'" /></head></html>'
# put everything to be archived in artifacts/
- mkdir -p "$HOME/artifacts/${TRAVIS_BRANCH%/*}"
- mkdir -p "$HOME/artifacts/${TRAVIS_TAG%/*}"
- 'if [[ ! $IS_LEGACY_BUILD ]]; then echo $FWD_HTML > $HOME/artifacts/$TRAVIS_BRANCH-latest.html; fi;'
- 'if [[ $TRAVIS_TAG != "head" ]]; then echo $FWD_HTML > $HOME/artifacts/$TRAVIS_TAG.html; fi;'
deploy:
# s3 upload - every commit
- provider: s3
access_key_id: $AWS_KEY
secret_access_key: $AWS_SECRET
bucket: supercollider
local-dir: $HOME/artifacts
upload-dir: $S3_BUILDS_LOCATION
region: us-west-2
skip_cleanup: true
endpoint: s3-us-west-2.amazonaws.com
acl: public_read
on:
condition: $TRAVIS_OS_NAME = osx && -n $AWS_KEY && -n $AWS_SECRET && -n $S3_DEPLOY_PREFIX
all_branches: true
# github releases - only tags
- provider: releases
api_key: $GITHUB_KEY
file: $HOME/$GITHUB_ARTIFACT_NAME.zip
prerelease: true
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = osx && -n $GITHUB_KEY && -n $GITHUB_DEPLOY_SUFFIX
tags: true
all_branches: true
after_deploy:
- 'if [[ -n "$S3_DEPLOY_PREFIX" ]]; then echo S3 Build Location: $S3_URL; fi;'
notifications:
on_success: change
on_failure: change
webhooks:
urls:
- https://webhooks.gitter.im/e/51b9b53ca50a7bfca97d
on_success: change
on_failure: always