gamemode/scripts/static-analyser-check.sh
Stephan Lachnit ab06ba419e Switch to GitHub Actions
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
2022-02-03 16:40:02 +00:00

11 lines
299 B
Bash
Executable File

#!/bin/bash
# Ensure we are at the project root
cd "$(dirname $0)"/..
# Collect scan-build output
ninja scan-build -C builddir | tee builddir/meson-logs/scan-build.txt
# Invert the output - if this string exists it's a fail
exit ! grep -E '[0-9]+ bugs? found.' builddir/meson-logs/scan-build.txt