diff options
author | Stephan Beyer <s-beyer@gmx.net> | 2020-07-07 09:51:05 +0300 |
---|---|---|
committer | Kevin Ottens <ervin@ipsquad.net> | 2020-07-08 15:08:41 +0300 |
commit | 82f38aa37d5a56dbbea12f010cacd782eed57095 (patch) | |
tree | 2c17db39acc81a2e504367a9690534b274240fa7 /.drone.yml | |
parent | 8e6d9401c7a77c8ed3c8a6075768f68443a0ea19 (diff) |
Filter clang-tidy output on Drone for errors
The run-clang-tidy is very verbose and prints a lot of unneccessary
information. This commit greps for errors in the output.
Moreover, we add the -quiet switch.
As a desired "side" effect, this commit repairs the issue of
run-clang-tidy-6.0 that it does not return a usable exit code.
Hence clang-tidy errors will lead to CI failures now.
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml index 96c75c1fa..1fa660a7b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -89,7 +89,7 @@ steps: chown -R test:test . && su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test" # Static analysis with clang-tidy - - run-clang-tidy-6.0 -p build + - "! run-clang-tidy-6.0 -p build -quiet | grep -A 5 ': error:'" trigger: branch: - master |