From 43e6deb562f713df48887d2b9d4e068d0b29da03 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Sun, 12 Jan 2020 22:29:21 -0800 Subject: [PATCH] [travis] only install flake8 on supported python --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 118105bc1..f0f26627e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,6 +43,6 @@ matrix: before_install: - if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi 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 . - ./devscripts/run_tests.sh