blob: ffda6854d18600105251c63dd55dde5c30cd3e8f (
plain)
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
|
include:
- project: "GNOME/citemplates"
file: "flatpak/flatpak_ci_initiative.yml"
- project: "Infrastructure/freedesktop-ci-templates"
file: "templates/fedora.yml"
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
job-stage: release
dist-job-name: "flatpak@x86_64"
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
variables:
GIT_SUBMODULE_STRATEGY: normal
MESON_BUILD_DIR: _build
CI_REGISTRY_IMAGE: registry.gitlab.gnome.org/gnome/nautilus
TARBALL_ARTIFACT_PATH: ".flatpak-builder/build/nautilus/_flatpak_build/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
stages:
- image
- review
- test
- analyze
- deploy
- release
.vars-devel:
variables:
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.json"
FLATPAK_MODULE: "nautilus"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
APP_ID: "org.gnome.Nautilus.Devel"
BUNDLE: "nautilus-dev.flatpak"
rules:
# Disable tests for protected tags
- if: $CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED
variables:
CONFIG_OPTS: '--libdir=/app/lib -Dprofile=Devel -Dtests=none'
- when: always
workflow:
rules:
# Run merge request pipelines, for main or release branches, for
# manually triggered pipelines (source "web"), and tags, but not for
# translation updates
- if: ($CI_PIPELINE_SOURCE == "merge_request_event" ||
$CI_COMMIT_TAG && $CI_COMMIT_REF_PROTECTED ||
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ||
$CI_COMMIT_BRANCH =~ /^gnome-.*$/ ||
$CI_PIPELINE_SOURCE == "web") &&
$CI_COMMIT_TITLE !~ /^Update.*translation$/
.fedora:
variables:
FDO_DISTRIBUTION_VERSION: rawhide
BASE_TAG: '2026-05-21.0'
FDO_DISTRIBUTION_COMPRESSION_FORMAT: zstd:chunked
FDO_DISTRIBUTION_PACKAGES:
git
gcc
gdb
meson
uncrustify
gcovr
glibc-devel
glib2-devel
glycin-devel
glycin-gtk4-devel
gtk4-devel
libadwaita-devel
libselinux-devel
gettext
libgexiv2-devel
localsearch
blueprint-compiler
gnome-desktop4-devel
gnome-autoar-devel
libportal-devel
libportal-gtk4-devel
libcloudproviders-devel
xwayland-run
mutter
dbus-daemon
dbus-x11
glycin-thumbnailer
libasan
glibc-langpack-en
.fedora-x86_64:
extends:
- .fedora
variables:
FDO_DISTRIBUTION_TAG: "x86_64-$BASE_TAG"
FDO_UPSTREAM_REPO: gnome/nautilus
needs:
- job: "update-fedora-image@x86_64"
optional: true
.fedora-arm64:
extends:
- .fedora
tags:
- aarch64
variables:
FDO_DISTRIBUTION_TAG: "aarch64-$BASE_TAG"
FDO_UPSTREAM_REPO: gnome/nautilus
needs:
- job: "update-fedora-image@arm64"
optional: true
update-fedora-image@x86_64:
extends:
- .fdo.container-build@fedora
- .fedora-x86_64
stage: image
needs: []
variables:
GIT_STRATEGY: none
FDO_DISTRIBUTION_EXEC: ".gitlab/image-script.sh"
CFLAGS: "-fno-omit-frame-pointer"
rules:
- changes:
- .gitlab-ci.yml
- .gitlab/**/*
- if: $CI_PROJECT_NAMESPACE != "GNOME"
when: never
update-fedora-image@arm64:
extends:
- .fdo.container-build@fedora
- .fedora-arm64
stage: image
needs: []
variables:
GIT_STRATEGY: none
FDO_DISTRIBUTION_EXEC: ".gitlab/image-script.sh"
CFLAGS: "-fno-omit-frame-pointer"
rules:
- changes:
- .gitlab-ci.yml
- .gitlab/**/*
- if: $CI_PROJECT_NAMESPACE != "GNOME"
when: never
potfile:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
stage: review
script:
- build-aux/check-potfiles.sh
style check:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
stage: review
artifacts:
name: 'Style check artifacts'
expose_as: 'Get style check diff here'
when: on_failure
paths:
- 'uncrustify.diff'
expire_in: 14 days
script:
- LANG=C.utf8 build-aux/run-uncrustify.sh
- git diff --exit-code | tee uncrustify.diff
rules:
- if: $CI_COMMIT_BRANCH !~ /^gnome-.*$/
gobject-linter:
stage: review
image:
name: "ghcr.io/bilelmoussaoui/gobject-linter:latest"
entrypoint: [""]
script:
- gobject-linter -c build-aux/gobject-linter.toml --format gitlab-codequality src/ > gobject-linter-codequality.json
artifacts:
expire_in: 14 days
reports:
codequality: gobject-linter-codequality.json
fedora_rawhide@x86_64:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
- .vars-devel
stage: test
script:
- meson setup -Dextensions=false -Db_coverage=true -Dtests=all $MESON_BUILD_DIR
- meson compile -C $MESON_BUILD_DIR
# Run the tests inside an XWayland server inside a headless Wayland compositor.
# FIXME: Use wlheadless-run again, which broke during an image update
- xwfb-run -c mutter -- meson test --suite display --suite displayless --print-errorlogs -C $MESON_BUILD_DIR
artifacts:
paths:
- $MESON_BUILD_DIR
reports:
junit: $MESON_BUILD_DIR/meson-logs/testlog.junit.xml
fedora_rawhide@arm64:
extends:
- .fdo.distribution-image@fedora
- .fedora-arm64
- .vars-devel
stage: test
when: manual
rules:
- if: $CI_PROJECT_NAMESPACE == "GNOME" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
- allow_failure: true
script:
- meson setup -Dextensions=false -Db_coverage=true -Dtests=all $MESON_BUILD_DIR
- meson compile -C $MESON_BUILD_DIR
# Run the tests inside an XWayland server inside a headless Wayland compositor.
# FIXME: Use wlheadless-run again, which broke during an image update
- xwfb-run -c mutter -- meson test --suite display --suite displayless --print-errorlogs -C $MESON_BUILD_DIR
artifacts:
paths:
- $MESON_BUILD_DIR
reports:
junit: $MESON_BUILD_DIR/meson-logs/testlog.junit.xml
flatpak@x86_64:
extends: ['.flatpak@x86_64', '.vars-devel']
flatpak@aarch64:
when: manual
rules:
- if: $CI_PROJECT_NAMESPACE == "GNOME" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always
- allow_failure: true
extends: ['.flatpak@aarch64', '.vars-devel']
asan:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
variables:
CFLAGS: "-fno-omit-frame-pointer"
stage: analyze
rules:
- when: manual
allow_failure: true
script:
- meson setup -Db_sanitize=address -Dextensions=false -Dintrospection=false -Dtests=all $MESON_BUILD_DIR
- meson compile -C $MESON_BUILD_DIR
# Run the tests inside an XWayland server inside a headless Wayland compositor.
# FIXME: Use wlheadless-run again, which broke during an image update
- xwfb-run -c mutter -- meson test --suite display --suite displayless --print-errorlogs -C $MESON_BUILD_DIR
artifacts:
name: 'Address Sanitizer-built test results'
when: on_failure
paths:
- $MESON_BUILD_DIR/meson-logs/testlog.txt
reports:
junit: $MESON_BUILD_DIR/meson-logs/testlog.junit.xml
expire_in: 7 days
coverage:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
stage: analyze
needs:
- job: fedora_rawhide@x86_64
artifacts: true
rules:
- allow_failure: true
script:
- ninja coverage -C $MESON_BUILD_DIR
artifacts:
expose_as: 'Coverage'
paths:
- $MESON_BUILD_DIR/meson-logs/coveragereport/index.html
- $MESON_BUILD_DIR/meson-logs/coveragereport
reports:
coverage_report:
coverage_format: cobertura
path: $MESON_BUILD_DIR/meson-logs/coverage.xml
expire_in: 2 weeks
coverage: '/^\s*lines:\s+([\d.]+\%)\s*/'
nightly@x86_64:
extends: '.publish_nightly'
needs: ['flatpak@x86_64']
nightly@aarch64:
extends: '.publish_nightly'
needs: ['flatpak@aarch64']
pages:
extends:
- .fdo.distribution-image@fedora
- .fedora-x86_64
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME"
script:
- meson setup -Ddocs=true -Dextensions=false -Dtests=none $MESON_BUILD_DIR
- ninja -C $MESON_BUILD_DIR
- mv $MESON_BUILD_DIR/docs/reference/nautilus/ public/
artifacts:
paths:
- public/
expire_in: 2 days
|