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:
Vasily
2019-06-24 19:21:14 +02:00
committed by username223
parent ec5a575d93
commit 201cb40359
3 changed files with 10 additions and 2 deletions
+7 -2
View File
@@ -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