mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
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>
This commit is contained in:
parent
8e6d9401c7
commit
82f38aa37d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue