Browse Source

Don't perform full Travis build on docs-only changes #2531

Narendra Vardi 8 years ago
parent
commit
944ae4afc3
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .travis.yml

+ 7 - 0
.travis.yml

@@ -42,6 +42,13 @@ matrix:
           osx_image: xcode6.4
           env: TOXENV=py36
 
+before_install:
+- |
+    git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(AUTHORS|README\.rst|^(docs)/)' || {
+      echo "Only docs were updated, stopping build process."
+      exit
+    }
+
 install:
     - git fetch --unshallow --tags
     - ./.travis/install.sh