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>
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"
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"