gitlab CI: run the scan-build analysis jobs in script
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 11 Feb 2021 21:28:18 +0000 (07:28 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 11 Feb 2021 21:35:58 +0000 (07:35 +1000)
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>
.gitlab-ci.yml
.gitlab-ci/ci.template

index b1d3efb..fc9da65 100644 (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"
index 923f4f3..f7d0a9b 100644 (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"