From de149613cb10c6ea43a0984627847b9a73295f99 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Tue, 5 Feb 2019 18:05:10 +0100 Subject: [PATCH] Run flake8 tests only once --- .travis.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 65dfaebfa..d91ffde6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,15 +3,20 @@ language: python dist: xenial +matrix: + include: + - python: '3.7' + env: RUN_FLAKE8=true + python: -- "2.7" -- "3.6" - "3.7" +- "3.6" +- "2.7" install: - pip install -e .[develop] script: -- nosetests --with-doctest -- flake8 --ignore=D,E,W,F401 src/ tests setup.py +- test -n "$RUN_FLAKE8" || nosetests --with-doctest +- test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401 src/ tests setup.py sudo: false git: depth: 250