From acb5e2e80abc66243ef787b2687e58faa5795cc4 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 24 Jul 2024 14:41:16 -0600 Subject: [PATCH] CI: Add a job for static analysis We add this in a new 'analysis' stage in the CI, which is where we'll put jobs for sanitizers, test coverage reports, etc. --- .gitlab-ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59c711283..ef690c447 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,7 @@ variables: stages: - prep + - analysis - build - test - analysis @@ -504,6 +505,18 @@ coverage: - "_build/meson-logs" - public +# Run static analysis. +static-scan: + stage: 'analysis' + extends: + - '.fdo.distribution-image@fedora' + variables: + MESON_ARGS: > + --buildtype=debug + script: + - meson setup ${MESON_ARGS} builddir . + - ninja -C builddir scan-build + pages: stage: 'deploy' needs: [ coverage ]