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>
This commit is contained in:
Peter Hutterer 2021-02-12 07:28:18 +10:00
parent f6c05ae4cc
commit 3eb428ef56
2 changed files with 4 additions and 2 deletions

View file

@ -661,7 +661,8 @@ scan-build@fedora:33:
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

@ -456,7 +456,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"