ci: Use --status-bugs option for scan-build

This removes the need to check the output directory for files.
This commit is contained in:
Benjamin Berg
2021-06-22 19:54:42 +02:00
parent b4f564cafc
commit 5bda7aef38
2 changed files with 2 additions and 4 deletions

View File

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