Move diff-cover commands to diffcover.sh

This commit is contained in:
hugovk 2014-07-01 00:22:44 +03:00
parent b72b6395c0
commit d002e5f690
2 changed files with 7 additions and 8 deletions

View File

@ -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

5
Scripts/diffcover.sh Executable file
View File

@ -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