diff options
author | Tim <t4im@users.noreply.github.com> | 2016-10-15 17:59:23 +0200 |
---|---|---|
committer | est31 <est31@users.noreply.github.com> | 2016-10-15 17:59:23 +0200 |
commit | adad6e0a1c2bb6cd5e56db26d660fa9342cf0d0e (patch) | |
tree | cead3b316b662b6e5134a1fa0c5a10ee32f7dd90 /util/travis/common.sh | |
parent | 9a3129da5e39e3495a038c9da94586247365fa8b (diff) | |
download | minetest-adad6e0a1c2bb6cd5e56db26d660fa9342cf0d0e.tar.gz minetest-adad6e0a1c2bb6cd5e56db26d660fa9342cf0d0e.tar.bz2 minetest-adad6e0a1c2bb6cd5e56db26d660fa9342cf0d0e.zip |
Travis: Only trigger a compile, when C/C++ related files were touched (#4284)
Diffstat (limited to 'util/travis/common.sh')
-rw-r--r-- | util/travis/common.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/travis/common.sh b/util/travis/common.sh new file mode 100644 index 000000000..16c7db324 --- /dev/null +++ b/util/travis/common.sh @@ -0,0 +1,8 @@ +#!/bin/bash -e + +# Relative to git-repository root: +TRIGGER_COMPILE_PATHS="src/|CMakeLists.txt|cmake/Modules/|util/travis/|util/buildbot/" + +needs_compile() { + git diff --name-only $TRAVIS_COMMIT_RANGE | egrep -q "^($TRIGGER_COMPILE_PATHS)" +} |