From 66af403f7d06b7f93d2e6e78f4e445c7a47e35cd Mon Sep 17 00:00:00 2001 From: Clint Wylie Date: Mon, 30 Jul 2018 13:36:49 -0700 Subject: [PATCH] skip travis on doc only changes (#6061) * skip travis on doc only changes * more selective ignoring of examples folder --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4ec30507b4f..0a37b3f9873 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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