gitlab CI: run the scan-build analysis jobs in script

after_script ignores any exit status so we can't actually fail the job here

Fixes #573

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 3eb428ef56)
This commit is contained in:
Peter Hutterer 2021-02-12 07:28:18 +10:00
parent 39ac181ffc
commit 35c661aa3a
2 changed files with 4 additions and 2 deletions

View file

@ -643,7 +643,8 @@ scan-build@fedora:32:
MESON_TEST_ARGS: ''
before_script:
- dnf install -y clang-analyzer findutils
after_script:
script:
- .gitlab-ci/meson-build.sh
- test ! -d "$MESON_BUILDDIR"/meson-logs/scanbuild && exit 0
- test $(find "$MESON_BUILDDIR"/meson-logs/scanbuild -maxdepth 0 ! -empty -exec echo "not empty" \; | wc -l) -eq 0 && exit 0
- echo "Check scan-build results"

View file

@ -485,7 +485,8 @@ scan-build@{{distro.name}}:{{version}}:
MESON_TEST_ARGS: ''
before_script:
- dnf install -y clang-analyzer findutils
after_script:
script:
- .gitlab-ci/meson-build.sh
- test ! -d "$MESON_BUILDDIR"/meson-logs/scanbuild && exit 0
- test $(find "$MESON_BUILDDIR"/meson-logs/scanbuild -maxdepth 0 ! -empty -exec echo "not empty" \; | wc -l) -eq 0 && exit 0
- echo "Check scan-build results"