ci: Fix clang-tidy-diff iregex

This commit is contained in:
Eduardo Almeida
2023-03-06 18:43:20 +00:00
parent 6bfeaa90b1
commit 6b1c13a599

View File

@@ -77,9 +77,10 @@ clang-tidy-diff:
script:
- git remote add upstream https://gitlab.com/nsnam/ns-3-dev.git
- git fetch upstream master
# File paths generated by git diff are relative to the working tree. Therefore, iregex should only contain paths relative to the working tree.
- git diff -U0 upstream/master |
clang-tidy-diff-14.py -path cmake-cache/ -p1 -quiet -use-color
-iregex ".*(ns|NS).*\/(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
-iregex "(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|c|h|hpp)"
1> $CLANG_TIDY_OUTPUT
2> /dev/null
- if egrep -A 3 "file not found \[clang-diagnostic-error\]" $CLANG_TIDY_OUTPUT ; then