CI: Add a static-scan job
This will run static analysis and publish the report on https://gnome.pages.gitlab.gnome.org/gnome-calendar/scanbuild
This commit is contained in:
+16
-1
@@ -73,9 +73,24 @@ coverage:
|
|||||||
- "_build/meson-logs"
|
- "_build/meson-logs"
|
||||||
- public
|
- public
|
||||||
|
|
||||||
|
static-scan:
|
||||||
|
stage: analysis
|
||||||
|
image: quay.io/gnome_infrastructure/gnome-build-meta:core-nightly
|
||||||
|
needs:
|
||||||
|
- job: build-flatpak
|
||||||
|
artifacts: false
|
||||||
|
script:
|
||||||
|
- .gitlab-ci/build-static-scan.sh
|
||||||
|
artifacts:
|
||||||
|
name: "gnome-calendar-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- "_build/meson-logs"
|
||||||
|
- public
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
needs: [ coverage ]
|
needs: [ coverage, static-scan ]
|
||||||
script:
|
script:
|
||||||
# No-op, just to gitlab thinks there's something to do.
|
# No-op, just to gitlab thinks there's something to do.
|
||||||
# The jobs that this job depends on have already populated public/
|
# The jobs that this job depends on have already populated public/
|
||||||
|
|||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eux -o pipefail
|
||||||
|
|
||||||
|
meson setup --buildtype=debug --prefix /usr _scan_build .
|
||||||
|
ninja -C _scan_build scan-build
|
||||||
|
mkdir -p public/
|
||||||
|
mv _scan_build/meson-logs/scanbuild public/scanbuild
|
||||||
Reference in New Issue
Block a user