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

This commit is contained in:
Narendra Vardi 2017-06-18 20:18:26 +05:30 committed by Narendra Vardi
parent b51198ebe7
commit 944ae4afc3
1 changed files with 7 additions and 0 deletions

View File

@ -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