[travis] run flake8 only once

This commit is contained in:
jnozsc 2020-01-13 09:12:00 -08:00
parent f2b222e0aa
commit 5e97615a85

View File

@ -35,6 +35,9 @@ jobs:
env: YTDL_TEST_SET=download
- env: JYTHON=true; YTDL_TEST_SET=core
- env: JYTHON=true; YTDL_TEST_SET=download
- python: 3.8
install: pip install flake8
script: flake8 .
fast_finish: true
allow_failures:
- env: YTDL_TEST_SET=download
@ -42,7 +45,4 @@ jobs:
- env: JYTHON=true; YTDL_TEST_SET=download
before_install:
- if [ "$JYTHON" == "true" ]; then ./devscripts/install_jython.sh; export PATH="$HOME/jython/bin:$PATH"; fi
script:
- 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'"
- if [ -x "$(command -v flake8)" ]; then flake8 . ;fi
- ./devscripts/run_tests.sh
script: ./devscripts/run_tests.sh