1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-13 12:55:04 -05:00
minetest/util/travis/common.sh

9 lines
241 B
Bash
Raw Normal View History

#!/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)"
}