travis: keep lint jobs for docs-only changes

This commit is contained in:
Xavier Fernandez 2019-07-18 12:12:32 +02:00 committed by Xavier Fernandez
parent 056a753144
commit c0203692fa
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
set -e
# Short circuit tests and linting jobs if there are no code changes involved.
if [[ $TOXENV != docs ]]; then
if [[ $TOXENV != docs ]] && [[ $TOXENV != lint-py2 ]] && [[ $TOXENV != lint-py3 ]]; then
# Keep lint-py2 & lint-py3 for docs/conf.py
if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]
then
echo "This is not a PR -- will do a complete build."