ci: Fix subproject initialisation for scan-build and coverity

Fixes commit 93271385f9.

Previously the `before_script` from `.build-linux` was used in whole for
these two jobs, but since the `.build-gobject-introspection` template
was also added, the `before_script`s from the two templates need to be
explicitly combined.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3458
This commit is contained in:
Philip Withnall 2024-09-12 21:46:31 +01:00
parent 744cdd0f0d
commit d6be962af9
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -790,6 +790,7 @@ scan-build:
-disable-checker deadcode.DeadStores
--status-bugs
before_script:
- !reference [".build-linux", "before_script"]
- !reference [".build-gobject-introspection", "before_script"]
script:
- meson setup ${MESON_COMMON_OPTIONS}
@ -824,6 +825,7 @@ scan-build:
# cov-build doesnt like GLIB_DEPRECATED_ENUMERATOR
CFLAGS: '-DGLIB_DISABLE_DEPRECATION_WARNINGS'
before_script:
- !reference [".build-linux", "before_script"]
- !reference [".build-gobject-introspection", "before_script"]
script:
- meson setup ${MESON_COMMON_OPTIONS}