From: Peter Hutterer Date: Thu, 11 Feb 2021 21:28:18 +0000 (+1000) Subject: gitlab CI: run the scan-build analysis jobs in script X-Git-Tag: 1.16.5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35c661aa3a9930c0f20c9f74b249d5aa4d02d9b3;p=platform%2Fupstream%2Flibinput.git 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 (cherry picked from commit 3eb428ef568808e4af115a64531a21fa28ed8dd2) --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 780ac17e..8e25335a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 74c8bce0..6da7cbd1 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -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"