From d002e5f6901c2005083791b453429641f0cb78d0 Mon Sep 17 00:00:00 2001 From: hugovk Date: Tue, 1 Jul 2014 00:22:44 +0300 Subject: [PATCH] Move diff-cover commands to diffcover.sh --- .travis.yml | 10 ++-------- Scripts/diffcover.sh | 5 +++++ 2 files changed, 7 insertions(+), 8 deletions(-) create mode 100755 Scripts/diffcover.sh diff --git a/.travis.yml b/.travis.yml index ec6fb2ce4..4f15d19d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,11 +51,5 @@ after_success: # 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 + - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then git fetch origin master:refs/remotes/origin/master; fi + - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover.sh; fi diff --git a/Scripts/diffcover.sh b/Scripts/diffcover.sh new file mode 100755 index 000000000..a573c97d4 --- /dev/null +++ b/Scripts/diffcover.sh @@ -0,0 +1,5 @@ +time CFLAGS=-O0 pip install --use-wheel diff_cover +coverage xml +diff-cover coverage.xml +diff-quality --violation=pep8 +diff-quality --violation=pyflakes