diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2018-06-10 18:33:33 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2018-06-10 18:33:33 +0200 |
commit | fb4e4f048ea8c53d20465ee17fddbfc0ae946b74 (patch) | |
tree | 36f241b84858137d8eaf632d42fcaee77885f738 | |
parent | 2e18a2d68c308d00243b0d0189f52a433c2f1bd4 (diff) | |
download | minetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.tar.gz minetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.tar.bz2 minetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.zip |
Disable clang-tidy when no C/C++ files has been modified.
-rwxr-xr-x | util/travis/clangtidy.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/travis/clangtidy.sh b/util/travis/clangtidy.sh index 6f76765a1..7ed555693 100755 --- a/util/travis/clangtidy.sh +++ b/util/travis/clangtidy.sh @@ -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 CLANG_TIDY=clang-tidy-5.0 else |