浏览代码

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

Narendra Vardi 8 年之前
父节点
当前提交
944ae4afc3
共有 1 个文件被更改,包括 7 次插入0 次删除
  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