From: Stephan Beyer Date: Tue, 7 Jul 2020 06:51:05 +0000 (+0200) Subject: Filter clang-tidy output on Drone for errors X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~102 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=82f38aa37d5a56dbbea12f010cacd782eed57095;p=nextcloud-desktop.git 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 --- 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