[travis] only install flake8 on supported python

This commit is contained in:
jnozsc 2020-01-12 22:29:21 -08:00
parent de80bd6acf
commit 43e6deb562

View File

@ -43,6 +43,6 @@ matrix:
before_install: before_install:
- if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi - if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi
script: script:
- pip install flake8 - pip install "flake8; python_version >= '2.7' and python_version != '3.0' and python_version != '3.1' and python_version != '3.2' and python_version != '3.3'"
- flake8 . - flake8 .
- ./devscripts/run_tests.sh - ./devscripts/run_tests.sh