forked from Stellarium/stellarium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
451 lines (429 loc) · 12 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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
env:
global:
- secure: "nDBuoowqSmcjCOsK4uXfkRRGuvcLt434lXeZIND/bfOEDgOv7h62w5h4i3ebSgItWkBStLzGB8Owfb2v/S0jC+wSIoP+SD2wRg12LA0/eeb3OBYw/TR5FlCVx21/GzvODTNi8NdWb92AcYGhbLNPqMDIFHGscARjHiP2EnONhTs="
language: cpp
git:
depth: 10
quiet: true
matrix:
include:
- os: linux
arch: amd64
dist: xenial
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
- libgps-dev
- libpulse-dev
- libgl1-mesa-dev
- xvfb
update: true
coverity_scan:
project:
name: "Stellarium/stellarium"
description: "A realistic, real-time 3D simulation of the night sky."
build_command_prepend: cov-configure --comptype gcc --compiler gcc-4.8 --template && cmake -DENABLE_TESTING=1 ..
build_command: make -j5
branch_pattern: coverity_scan
notification_email: [email protected]
env:
- MATRIX_EVAL="CC=gcc-4.8 && CXX=g++-4.8"
- TRANSLATE=true
- COVERAGE=false
- REPQT=false
- os: linux
arch: amd64
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
- lcov
update: true
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- TRANSLATE=false
- COVERAGE=true
- REPQT=true
- os: linux
arch: amd64
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: arm64
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: arm64
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: ppc64le
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: ppc64le
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: s390x
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
- os: linux
arch: s390x
dist: bionic
addons:
apt:
packages:
- qt5-default
- qt5-qmake
- qtbase5-dev
- qtbase5-dev-tools
- qttools5-dev
- qttools5-dev-tools
- qtscript5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
- qtmultimedia5-dev
- libqt5multimedia5-plugins
- libqt5serialport5
- libqt5serialport5-dev
- qtpositioning5-dev
- libqt5positioning5
- libqt5positioning5-plugins
- libgps-dev
- zlib1g-dev
- libgl1-mesa-dev
- xvfb
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
- REPQT=true
# macOS 10.13
- os: osx
osx_image: xcode9.4
addons:
homebrew:
packages:
- qt
- gpsd
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
# macOS 10.14
- os: osx
osx_image: xcode10.3
addons:
homebrew:
packages:
- qt
- gpsd
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
# macOS 10.14
- os: osx
osx_image: xcode11.3
addons:
homebrew:
packages:
- qt
- gpsd
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
# macOS 10.15
- os: osx
osx_image: xcode12
addons:
homebrew:
packages:
- qt
- gpsd
update: true
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- TRANSLATE=false
- COVERAGE=false
# - os: windows
# env:
# - MATRIX_EVAL="CC=cl.exe && CXX=cl.exe"
# - MSVCNAME="Visual Studio 15 2017 Win64"
# - TRANSLATE=false
# - COVERAGE=false
before_install:
- eval "${MATRIX_EVAL}"
# Linux
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$REPQT" == false ]]; then
mkdir qt5;
wget -q -O qt5.zip https://github.com/Stellarium/stellarium-data/releases/download/qt-5.9/qt5.zip;
unzip -qq qt5.zip -d qt5;
export PATH=`pwd`/qt5/bin:$PATH;
export QT_PLUGIN_PATH=`pwd`/qt5/plugins;
export PYTHONWARNINGS="ignore:A true SSLContext object is not available,ignore:An HTTPS request has been made";
fi
# Mac OS X
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH="/usr/local/opt/qt/bin:$PATH";
export CPATH="/usr/local/include:$CPATH";
fi
# Windows
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
mkdir /c/qt5;
cd /c/qt5;
wget -O qt5.zip http://dss.stellarium.org/qt/qt512x64w.zip;
unzip -qq qt5.zip -d /c/qt5;
export PATH=/c/qt5/bin:$PATH;
export QT_PLUGIN_PATH=/c/qt5/plugins;
echo $PATH;
cd;
cd build/Stellarium/stellarium;
dir;
fi
# ... + Coverage
- if [[ "$COVERAGE" == true ]]; then
pip install --user cpp-coveralls;
gem install coveralls-lcov;
fi
install:
before_script:
- export DISPLAY=:99.0
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ( Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
- sleep 3 # give xvfb some time to start
- mkdir builds
- cd builds
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" || "$TRAVIS_OS_NAME" == "osx" ]]; then
cmake -DENABLE_TESTING=1 -DCMAKE_BUILD_TYPE=Debug .. ;
make -j5 ;
ctest --output-on-failure ;
fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
cmake -DENABLE_TESTING=0 -G "$MSVCNAME" .. ;
cmake --build . --target ALL_BUILD --config RelWithDebInfo --parallel ;
fi
#- ctest --output-on-failure
- if [[ "$COVERAGE" == true ]]; then
make coverage;
fi
after_success:
- if [[ "$TRANSLATE" == true && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == false && "$TRAVIS_REPO_SLUG" == "Stellarium/stellarium" ]]; then
pip install --user urllib3==1.23 transifex-client;
sudo echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc;
tx push -s;
fi
- if [[ "$COVERAGE" == true ]]; then
lcov --gcov-tool "/usr/bin/gcov-7" --remove coverage.info '*_autogen/*' '*/ui_*.h' '*/qrc_*.cpp' '*/qt5/*' '/usr/*' '*gmock*' --output-file coverage.info;
coveralls-lcov coverage.info;
fi
notifications:
email:
recipients:
on_success: change
on_failure: always
irc:
channels:
- "irc.freenode.net#stellarium"
template:
- "Stellarium/master #%{build_number} (%{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"