forked from TelepathyIM/wocky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
125 lines (113 loc) · 2.48 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
stages:
- style-check
- build
- test
variables:
FEDORA_AC: registry.freedesktop.org/telepathy/wocky/master:v1
DEBIAN_AC: registry.freedesktop.org/telepathy/wocky/debtest:v1
DEBSTB_AC: registry.freedesktop.org/telepathy/wocky/debstbl:v1
SUSELP_AC: registry.freedesktop.org/telepathy/wocky/osuselp:v1
SUSETW_AC: registry.freedesktop.org/telepathy/wocky/osusetw:v1
FEDORA_MB: registry.freedesktop.org/telepathy/telepathy-gabble/fedoraw:v1
DEBIAN_MB: registry.freedesktop.org/telepathy/telepathy-gabble/debtest:v1
DEBSTB_MB: registry.freedesktop.org/telepathy/telepathy-gabble/debstbl:v1
SUSELP_MB: registry.freedesktop.org/telepathy/telepathy-gabble/osuselp:v1
SUSETW_MB: registry.freedesktop.org/telepathy/telepathy-gabble/osusetw:v1
WOCKY_DEBUG: all
#G_MESSAGES_DEBUG: all
.def_ac:
before_script:
- bash autogen.sh
cache:
key: "$CI_JOB_IMAGE:$CI_COMMIT_SHA"
untracked: true
.def_mb:
before_script:
- test -d _b || meson _b -Dgoogle-relay=true
cache:
key: "$CI_JOB_IMAGE:$CI_COMMIT_SHA"
untracked: true
.defbuild:
extends: .def_ac
stage: build
script:
- make
.deftest:
extends: .def_ac
stage: test
script:
- make check
artifacts:
when: always
paths:
- "tests/test-old-report.xml"
- "tests/test-new-report.xml"
style-ck-ac:
extends: .def_ac
stage: style-check
image: $FEDORA_AC
script:
- make -C wocky check-local
- make -C tests check-coding-style
style-ck-mb:
extends: .def_mb
stage: style-check
image: $FEDORA_MB
script:
- ninja -C _b check
build-ac:
extends: .defbuild
image: $image
parallel:
matrix:
- image:
- $FEDORA_AC
#- $DEBIAN_AC
- $SUSETW_AC
- $DEBSTB_AC
- $SUSELP_AC
build-mb:
extends: .def_mb
stage: build
image: $image
script:
- ninja -C _b
parallel:
matrix:
- image:
- $FEDORA_MB
- $DEBIAN_MB
#- $SUSETW_MB
- $DEBSTB_MB
- $SUSELP_MB
test-ac:
extends: .deftest
image: $image
parallel:
matrix:
- image:
- $FEDORA_AC
#- $DEBIAN_AC
- $SUSETW_AC
- $DEBSTB_AC
- $SUSELP_AC
test-mb:
extends: .def_mb
stage: test
image: $image
script:
- meson test -C _b
artifacts:
reports:
expire_in: 1 week
when: always
paths:
- "_b/meson-logs"
parallel:
matrix:
- image:
- $FEDORA_MB
- $DEBIAN_MB
#- $SUSETW_MB
- $DEBSTB_MB
- $SUSELP_MB