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 ]