skip travis on doc only changes (#6061)

* skip travis on doc only changes

* more selective ignoring of examples folder
This commit is contained in:
Clint Wylie 2018-07-30 13:36:49 -07:00 committed by Jihoon Son
parent 63be028cee
commit 66af403f7d
1 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,15 @@ jdk:
cache:
directories:
- $HOME/.m2
before_install:
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples/(bin|conf|conf-quickstart|quickstart)|publications))/' || {
echo "Only docs were updated, stopping build process."
exit
}
matrix:
include:
# strict compilation