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.
This commit is contained in:
Federico Mena Quintero 2024-07-24 14:41:16 -06:00
parent e6e76c5c25
commit acb5e2e80a

View file

@ -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 ]