aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-06-10 18:33:33 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2018-06-10 18:33:33 +0200
commitfb4e4f048ea8c53d20465ee17fddbfc0ae946b74 (patch)
tree36f241b84858137d8eaf632d42fcaee77885f738
parent2e18a2d68c308d00243b0d0189f52a433c2f1bd4 (diff)
downloadminetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.tar.gz
minetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.tar.bz2
minetest-fb4e4f048ea8c53d20465ee17fddbfc0ae946b74.zip
Disable clang-tidy when no C/C++ files has been modified.
-rwxr-xr-xutil/travis/clangtidy.sh5
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