Disable clang-tidy when no C/C++ files has been modified.

master
Loic Blot 2018-06-10 18:33:33 +02:00
parent 2e18a2d68c
commit fb4e4f048e
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
#!/bin/bash -e
. util/travis/common.sh
needs_compile || exit 0
if hash clang-tidy-5.0 2>/dev/null; then if hash clang-tidy-5.0 2>/dev/null; then
CLANG_TIDY=clang-tidy-5.0 CLANG_TIDY=clang-tidy-5.0
else else