jihoonson closed pull request #6061: skip travis on doc only changes
URL: https://github.com/apache/incubator-druid/pull/6061
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to