[libadwaita/wip/exalm/scanbuild: 813/813] ci: Add a scan-build job
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/scanbuild: 813/813] ci: Add a scan-build job
- Date: Sat, 23 Oct 2021 20:40:41 +0000 (UTC)
commit 78e6c745e0387c3a636a78156ba6b1e55f132c62
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Feb 16 15:58:22 2021 +0500
ci: Add a scan-build job
Copied from epiphany.
.gitlab-ci.yml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 56a9521c..0c2799be 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,6 +47,22 @@ build-flatpak:
APP_ID: 'org.gnome.Adwaita1.Demo'
BUNDLE: 'org.gnome.Adwaita1.Demo.flatpak'
+scan-build:
+ extends: '.flatpak'
+ stage: build
+ variables:
+ MESON_ARGS: >-
+ --werror
+ script:
+ - flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} ${FLATPAK_BUILD_DIR}
${MANIFEST_PATH}
+ - flatpak build ${FLATPAK_BUILD_DIR} meson --prefix=/app ${SHARED_MESON_ARGS} ${MESON_ARGS} _build
+ - flatpak build ${FLATPAK_BUILD_DIR} ninja -C _build scan-build
+ - bash -c 'if [[ -n "$(ls -A _build/meson-logs/scanbuild/)" ]]; then echo "Scan build log found,
assuming defects exist"; exit 1; fi'
+ artifacts:
+ when: on_failure
+ paths:
+ - _build/meson-logs/scanbuild
+
abi-check:
image: $ABI_CHECKER_IMAGE
stage: build
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]