From 82f38aa37d5a56dbbea12f010cacd782eed57095 Mon Sep 17 00:00:00 2001 From: Stephan Beyer Date: Tue, 7 Jul 2020 08:51:05 +0200 Subject: [PATCH] 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 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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