Skip to content
Snippets Groups Projects
Commit adad6e0a authored by Tim's avatar Tim Committed by est31
Browse files

Travis: Only trigger a compile, when C/C++ related files were touched (#4284)

parent 9a3129da
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -e #!/bin/bash -e
echo "Preparing for $TRAVIS_COMMIT_RANGE"
. util/travis/common.sh
needs_compile || exit 0
if [[ $TRAVIS_OS_NAME == "linux" ]]; then if [[ $TRAVIS_OS_NAME == "linux" ]]; then
sudo apt-get update sudo apt-get update
......
#!/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)"
}
#!/bin/bash -e #!/bin/bash -e
. util/travis/common.sh
needs_compile || exit 0
if [[ $PLATFORM == "Unix" ]]; then if [[ $PLATFORM == "Unix" ]]; then
mkdir -p travisbuild mkdir -p travisbuild
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment