Add variable for clang-tidy name when building on Linux
Travis has the correct clang-tidy version of 7, while CircleCI needs clang-tidy-7.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
set +e
|
||||
clang-tidy-7 --version
|
||||
|
||||
if [[ -z $CLANG_TIDY_EXECUTABLE ]]; then
|
||||
CLANG_TIDY_EXECUTABLE='clang-tidy'
|
||||
fi
|
||||
|
||||
$CLANG_TIDY_EXECUTABLE --version
|
||||
|
||||
ERROR=0
|
||||
for file in $(find ../src -name "*.cpp"); do
|
||||
echo $file
|
||||
clang-tidy-7 $file
|
||||
$CLANG_TIDY_EXECUTABLE $file
|
||||
|
||||
EXIT=$?
|
||||
if [[ $EXIT != 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user