2016-10-15 08:59:23 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Relative to git-repository root:
|
2017-03-25 11:12:18 -07:00
|
|
|
TRIGGER_COMPILE_PATHS="src/.*\.(c|cpp|h)|CMakeLists.txt|cmake/Modules/|util/travis/|util/buildbot/"
|
2016-10-15 08:59:23 -07:00
|
|
|
|
|
|
|
needs_compile() {
|
|
|
|
git diff --name-only $TRAVIS_COMMIT_RANGE | egrep -q "^($TRIGGER_COMPILE_PATHS)"
|
|
|
|
}
|
2017-03-25 11:12:18 -07:00
|
|
|
|