From b72b6395c03af36c866b182abc166cfaa4be6acf Mon Sep 17 00:00:00 2001 From: hugovk Date: Mon, 30 Jun 2014 23:57:16 +0300 Subject: [PATCH] Don't run on Py3.x because installation takes ~4m , or ~2m with CFLAGS=-O0. Installation is ~1m30s for 2.x or ~30s with flags. --- .travis.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index d6589efc7..ec6fb2ce4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,10 +48,14 @@ after_success: - pyflakes PIL/*.py | tee >(wc -l) - pyflakes Tests/*.py | tee >(wc -l) - # Coverage and quality reports on just the last diff - - time git fetch origin master:refs/remotes/origin/master - - time CFLAGS=-O0 pip install --use-wheel diff_cover - - time coverage xml - - time diff-cover coverage.xml - - time diff-quality --violation=pep8 - - time diff-quality --violation=pyflakes + + # Coverage and quality reports on just the latest diff. + # (Installation is very slow on Py3, so just do it for Py2.) + - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then + git fetch origin master:refs/remotes/origin/master + time CFLAGS=-O0 pip install --use-wheel diff_cover + coverage xml + diff-cover coverage.xml + diff-quality --violation=pep8 + diff-quality --violation=pyflakes + fi