Switch to GitHub Actions

Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
Stephan Lachnit
2021-05-25 00:14:58 +02:00
committed by afayaz-feral
parent 6c60565f33
commit ab06ba419e
6 changed files with 70 additions and 40 deletions

View File

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