blob: 35ceec08d93830b268d07145f62649d9449c7cce (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash -e
# Relative to git-repository root:
TRIGGER_COMPILE_PATHS="src/.*\.(c|cpp|h)|CMakeLists.txt|cmake/Modules/|util/travis/|util/buildbot/"
needs_compile() {
git diff --name-only $TRAVIS_COMMIT_RANGE | egrep -q "^($TRIGGER_COMPILE_PATHS)"
}
|