forked from Fedict/eid-mw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
555 lines (512 loc) · 11.8 KB
/
.gitlab-ci.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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
---
stages:
- docker
- tests
- source-package
- binary-package
- validate
- build-repository
- publish
include:
- local: .ci/build-configs.yml
- local: .ci/builds-linux.yml
- local: .ci/builds-windows.yml
- local: .ci/builds-macos.yml
- local: .ci/builds-docker.yml
variables:
LINUX_BASEDIR: .
DOCKER_BASEDIR: .
WINDOWS_BASEDIR: .
MACOS_BASEDIR: .
#######################################
# Stage "docker": build docker images #
#######################################
suse-build:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/suse-build/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
fed-build:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/fed-build/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
deb-build:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/deb-build/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
deb-repro:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/deb-repro/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
deb-scan-build:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/deb-scan-build/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
deb-sbuild:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/deb-sbuild/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
gtk4-build:
extends: .docker-base
only:
changes:
- .ci/dockerfiles/gtk4-build/**/*
- .ci/builds-docker.yml
- .ci/build-configs.yml
allow_failure: true
##########################################################################################################
# Stage "tests": run a test battery before doing all the hard work (i.e., try to find any problems ASAP) #
##########################################################################################################
test:distcheck:
stage: tests
extends: .distcheck
test:robot:linux:
stage: tests
extends: .robot:linux
test:repro:debian:
stage: tests
extends: .repro:debian
test:scan-build:
stage: tests
extends: .scan-build
test:gtk4:
stage: tests
extends: .gtk4
test:nogtk:
stage: tests
extends: .nogtk
test:nodialogs:
stage: tests
extends: .nodialogs
test:coverity:linux:
stage: tests
extends: .coverity:linux
#################################################
# Stage "source-package": build source packages #
#################################################
src:srpm:
stage: source-package
extends: .srpm
needs:
- test:distcheck
- test:robot:linux
##############################################################
# Stage "binary-package": build binaries and binary packages #
##############################################################
## Debian-based distributions
.build-deb: &build-deb
extends: .build-deb-base
dependencies:
- test:distcheck
stage: binary-package
needs:
- test:distcheck
- test:robot:linux
build:deb_oldstable_32:
<<: *build-deb
variables:
DIST: debian
CODE: $DEBIAN_OLDSTABLE_CODE
SHORT: deb$DEBIAN_OLDSTABLE_VERSION
ARCH: i386
GIT_STRATEGY: none
only:
variables:
- $DEBIAN_OLDSTABLE_CODE
build:deb_oldstable_64:
<<: *build-deb
variables:
DIST: debian
CODE: $DEBIAN_OLDSTABLE_CODE
SHORT: deb$DEBIAN_OLDSTABLE_VERSION
ARCH: amd64
GIT_STRATEGY: none
only:
variables:
- $DEBIAN_OLDSTABLE_CODE
build:deb_stable_32:
<<: *build-deb
variables:
DIST: debian
CODE: $DEBIAN_STABLE_CODE
SHORT: deb$DEBIAN_STABLE_VERSION
ARCH: i386
GIT_STRATEGY: none
only:
variables:
- $DEBIAN_STABLE_CODE
build:deb_stable_64:
<<: *build-deb
variables:
DIST: debian
CODE: $DEBIAN_STABLE_CODE
SHORT: deb$DEBIAN_STABLE_VERSION
ARCH: amd64
GIT_STRATEGY: none
only:
variables:
- $DEBIAN_STABLE_CODE
build:sid-32:
<<: *build-deb
variables:
DIST: debian
CODE: sid
SHORT: sid
ARCH: i386
GIT_STRATEGY: none
allow_failure: true
build:sid-64:
<<: *build-deb
variables:
DIST: debian
CODE: sid
SHORT: sid
ARCH: amd64
GIT_STRATEGY: none
allow_failure: true
build:ubuntu_oldlts_32:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_OLDLTS_CODE
SHORT: u$UBUNTU_OLDLTS_VERSION
ARCH: i386
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_OLDLTS_CODE
build:ubuntu_oldlts_64:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_OLDLTS_CODE
SHORT: u$UBUNTU_OLDLTS_VERSION
ARCH: amd64
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_OLDLTS_CODE
build:ubuntu_lts_32:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_LTS_CODE
SHORT: u$UBUNTU_LTS_VERSION
ARCH: i386
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_LTS_CODE
build:ubuntu_lts_64:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_LTS_CODE
SHORT: u$UBUNTU_LTS_VERSION
ARCH: amd64
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_LTS_CODE
build:ubuntu_stable_32:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_STABLE_CODE
SHORT: u$UBUNTU_STABLE_VERSION
ARCH: i386
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_STABLE_CODE
build:ubuntu_stable_64:
<<: *build-deb
variables:
DIST: ubuntu
CODE: $UBUNTU_STABLE_CODE
SHORT: u$UBUNTU_STABLE_VERSION
ARCH: amd64
GIT_STRATEGY: none
only:
variables:
- $UBUNTU_STABLE_CODE
# Fedora-based distributions
.build-fed: &build-fed
extends: .build-fed-base
dependencies:
- src:srpm
stage: binary-package
needs:
- src:srpm
build:fedora_oldstable_32:
<<: *build-fed
variables:
DIST: fedora
DVER: $FEDORA_OLDSTABLE_VERSION
ARCH: i386
only:
variables:
- $FEDORA_OLDSTABLE_VERSION
build:fedora_oldstable_64:
<<: *build-fed
variables:
DIST: fedora
DVER: $FEDORA_OLDSTABLE_VERSION
ARCH: x86_64
only:
variables:
- $FEDORA_OLDSTABLE_VERSION
build:fedora_stable_32:
<<: *build-fed
variables:
DIST: fedora
DVER: $FEDORA_STABLE_VERSION
ARCH: i386
only:
variables:
- $FEDORA_STABLE_VERSION
build:fedora_stable_64:
<<: *build-fed
variables:
DIST: fedora
DVER: $FEDORA_STABLE_VERSION
ARCH: x86_64
only:
variables:
- $FEDORA_STABLE_VERSION
build:centos_oldstable_64:
<<: *build-fed
variables:
DIST: epel
DVER: $CENTOS_OLDSTABLE_VERSION
ARCH: x86_64
only:
variables:
- $CENTOS_OLDSTABLE_VERSION
build:centos_stable_64:
<<: *build-fed
variables:
DIST: rocky
DVER: $CENTOS_STABLE_VERSION
ARCH: x86_64
only:
variables:
- $CENTOS_STABLE_VERSION
# openSUSE-based distributions
.build-suse: &build-suse
extends: .build-suse-base
dependencies:
- src:srpm
stage: binary-package
needs:
- src:srpm
build:suse_oldstable:
<<: *build-suse
variables:
DIST: opensuse
DVER: $OPENSUSE_OLDSTABLE_VERSION
ARCH: x86_64
only:
variables:
- $OPENSUSE_OLDSTABLE_VERSION
build:suse_stable:
<<: *build-suse
variables:
DIST: opensuse
DVER: $OPENSUSE_STABLE_VERSION
ARCH: x86_64
only:
variables:
- $OPENSUSE_STABLE_VERSION
# Windows
build:windows:
stage: binary-package
extends: .build-windows
needs:
- test:distcheck
- test:robot:linux
# macOS
build:macos:
stage: binary-package
extends: .build-macos
variables:
EIDMW_SIGN_BUILD: 0
needs:
- test:distcheck
- test:robot:linux
build:freebsd:
stage: binary-package
extends: .build-freebsd-base
allow_failure: true
needs:
- test:distcheck
- test:robot:linux
validate:robot:windows:
stage: validate
extends: .robot:windows
dependencies:
- build:windows
validate:robot:macos:
stage: validate
extends: .robot:macos
dependencies:
- build:macos
#validate:validation:windows:dllinstall:
# stage: validate
# extends: .validation:windows:dllinstall
# dependencies:
# - build:windows
# allow_failure: true
#validate:validation:windows:google:
# stage: validate
# extends: .validation:windows:google
# dependencies:
# - build:windows
# allow_failure: true
#validate:validation:windows:firefox:
# stage: validate
# extends: .validation:windows:firefox
# dependencies:
# - build:windows
# allow_failure: true
#validate:validation:windows:edge:
# stage: validate
# extends: .validation:windows:edge
# dependencies:
# - build:windows
# allow_failure: true
#validate:validation:windows:ie:
# stage: validate
# extends: .validation:windows:ie
# dependencies:
# - build:windows
# allow_failure: true
validate:validation:linux:google:
stage: validate
extends: .validation:linux:google
dependencies:
- build:ubuntu_oldlts_32
- build:ubuntu_oldlts_64
- build:ubuntu_stable_32
- build:ubuntu_stable_64
- build:ubuntu_lts_64
- build:ubuntu_lts_32
validate:validation:linux:firefox:
stage: validate
extends: .validation:linux:firefox
dependencies:
- build:ubuntu_oldlts_32
- build:ubuntu_oldlts_64
- build:ubuntu_stable_32
- build:ubuntu_stable_64
- build:ubuntu_lts_64
- build:ubuntu_lts_32
#Validate:validation:macos:safari:
# stage: validate
# extends: .validation:macos:safari
# dependencies:
# - build:macos
# allow_failure: true
validate:validation:macos:google:
stage: validate
extends: .validation:macos:google
dependencies:
- build:macos
allow_failure: true
validate:reports:translation-status:
stage: validate
extends: .check-translations
####################################################################
# Stage "build-repository": copy binaries into a repository layout #
####################################################################
repo:inject-debs:
dependencies:
- build:deb_oldstable_32
- build:deb_stable_32
- build:sid-32
- build:ubuntu_oldlts_32
- build:ubuntu_lts_32
- build:ubuntu_stable_32
- build:deb_oldstable_64
- build:deb_stable_64
- build:sid-64
- build:ubuntu_oldlts_64
- build:ubuntu_lts_64
- build:ubuntu_stable_64
stage: build-repository
extends: .inject-debs
only:
variables:
- $CI_COMMIT_REF_NAME == "master"
- $CI_COMMIT_REF_NAME == $CANDIDATEBRANCH
- $CI_COMMIT_TAG
repo:inject-fed:
only:
variables:
- $CI_COMMIT_REF_NAME == "master"
- $CI_COMMIT_REF_NAME == $CANDIDATEBRANCH
- $CI_COMMIT_TAG
dependencies:
- build:fedora_oldstable_32
- build:fedora_oldstable_64
- build:fedora_stable_32
- build:fedora_stable_64
- build:centos_oldstable_64
- build:centos_stable_64
stage: build-repository
extends: .inject-fed
repo:inject-suse:
only:
variables:
- $CI_COMMIT_REF_NAME == "master"
- $CI_COMMIT_REF_NAME == $CANDIDATEBRANCH
- $CI_COMMIT_TAG
dependencies:
- build:suse_oldstable
- build:suse_stable
stage: build-repository
extends: .inject-suse
repo:inject-source:
dependencies:
- test:distcheck
stage: build-repository
extends: .inject-source
# repository rsyncs are staggered:
# - first, rsync without metadata, so that all the new files appear
# - next, rsync without exclusions, so that the metadata files appear
# (but the old files still exist)
# - Finally, rsync with --delete-before, so that the old files are
# removed.
# This should keep the repository consistent while files are being
# updated.
# (theoretically it should be possible to combine the last two steps
# into a single rsync with --delete-after, but it's nice to have
# separate steps for that)
publish:rsync:
stage: publish
tags:
- repobuilder
script:
- scripts/build-aux/cleanup.sh
- rsync -avr --delete-before $DIST_LOC/continuous/ $RSYNC_TARGET_DIST/continuous
- rsync -avr --delete-before $DIST_LOC/releases/ $RSYNC_TARGET_DIST/releases
- rsync -avrLHP --exclude="dists/" --exclude="repomd.xml*" $REPO_LOC $RSYNC_TARGET_FILES
- rsync -avrLHP $REPO_LOC $RSYNC_TARGET_FILES
- rsync -avrLHP --delete-before $REPO_LOC $RSYNC_TARGET_FILES