From f2b222e0aa923f41ea6b957baaee23f3e0c23b00 Mon Sep 17 00:00:00 2001 From: jnozsc Date: Sun, 12 Jan 2020 23:36:03 -0800 Subject: [PATCH] [travis] use correct statement to run the test --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 29676d9fb..59a0100ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,5 +44,5 @@ 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 flake8 2>/dev/null; then flake8 . ; fi + - if [ -x "$(command -v flake8)" ]; then flake8 . ;fi - ./devscripts/run_tests.sh