From 5bda7aef3874e84b6d57f1d2caf74318df6f5abe Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 22 Jun 2021 19:54:42 +0200 Subject: [PATCH] ci: Use --status-bugs option for scan-build This removes the need to check the output directory for files. --- .gitlab-ci.yml | 4 +--- .gitlab-ci/scan-build | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b33367a..be0b46e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,10 +100,8 @@ test_scan_build: allow_failure: true script: - meson -Ddrivers=all . _build - # This is ugly, the wrapper disables the malloc checker + # Wrapper to add --status-bugs and disable malloc checker - SCANBUILD=$CI_PROJECT_DIR/.gitlab-ci/scan-build ninja -C _build scan-build - # Check that the directory is empty - - "! ls -A _build/meson-logs/scanbuild | grep -q ." artifacts: paths: - _build/meson-logs diff --git a/.gitlab-ci/scan-build b/.gitlab-ci/scan-build index be40871..0aa8c99 100755 --- a/.gitlab-ci/scan-build +++ b/.gitlab-ci/scan-build @@ -1,4 +1,4 @@ #!/bin/sh # This wrapper just disables the malloc checker -exec /usr/bin/scan-build -disable-checker unix.Malloc "$@" \ No newline at end of file +exec /usr/bin/scan-build --status-bugs -disable-checker unix.Malloc "$@" \ No newline at end of file