mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 15:00:05 +01:00
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:
parent
39ac181ffc
commit
35c661aa3a
2 changed files with 4 additions and 2 deletions
|
|
@ -643,7 +643,8 @@ scan-build@fedora:32:
|
||||||
MESON_TEST_ARGS: ''
|
MESON_TEST_ARGS: ''
|
||||||
before_script:
|
before_script:
|
||||||
- dnf install -y clang-analyzer findutils
|
- dnf install -y clang-analyzer findutils
|
||||||
after_script:
|
script:
|
||||||
|
- .gitlab-ci/meson-build.sh
|
||||||
- test ! -d "$MESON_BUILDDIR"/meson-logs/scanbuild && exit 0
|
- 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
|
- 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"
|
- echo "Check scan-build results"
|
||||||
|
|
|
||||||
|
|
@ -485,7 +485,8 @@ scan-build@{{distro.name}}:{{version}}:
|
||||||
MESON_TEST_ARGS: ''
|
MESON_TEST_ARGS: ''
|
||||||
before_script:
|
before_script:
|
||||||
- dnf install -y clang-analyzer findutils
|
- dnf install -y clang-analyzer findutils
|
||||||
after_script:
|
script:
|
||||||
|
- .gitlab-ci/meson-build.sh
|
||||||
- test ! -d "$MESON_BUILDDIR"/meson-logs/scanbuild && exit 0
|
- 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
|
- 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"
|
- echo "Check scan-build results"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue