Only run flake8 on pull requests

This commit is contained in:
Michael Shepanski 2017-02-27 21:21:57 -05:00
parent 6fe06be8e5
commit f93b4a4dbd

View file

@ -19,7 +19,7 @@ install:
- pip install -r requirements_doc.txt
script:
- py.test tests -s --tb=native --verbose --cov-config .coveragerc --cov=plexapi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash py.test tests -s --tb=native --verbose --cov-config .coveragerc --cov=plexapi; fi
- flake8 plexapi --exclude=compat.py --max-line-length=120 --ignore=E128,E701,E702,E731,W293
after_success: