Now make sure we're not picking up generated headers

This could happen (and started to happen more with clang-tidy 10) that
clang-tidy picked up errors in headers from the build directory. Now
that we moved the build directory out of source, we can simply filter
headers based on the pwd.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-08-06 08:49:17 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent 1e8340cd48
commit 65407483e5
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,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-10 -p /drone/build -quiet | grep -A 5 ': error:'"
- "! run-clang-tidy-10 -p /drone/build -header-filter $PWD -quiet | grep -A 5 ': error:'"
volumes:
- name: build