mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Separate install and report scripts for diff-cover
This commit is contained in:
parent
d002e5f690
commit
e220e597bf
|
@ -51,5 +51,5 @@ after_success:
|
||||||
|
|
||||||
# Coverage and quality reports on just the latest diff.
|
# Coverage and quality reports on just the latest diff.
|
||||||
# (Installation is very slow on Py3, so just do it for Py2.)
|
# (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; fi
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover-install.sh; fi
|
||||||
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover.sh; fi
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then Scripts/diffcover-report.sh; fi
|
||||||
|
|
7
Scripts/diffcover-install.sh
Executable file
7
Scripts/diffcover-install.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
# Fetch the remote master branch before running diff-cover on Travis CI.
|
||||||
|
# https://github.com/edx/diff-cover#troubleshooting
|
||||||
|
git fetch origin master:refs/remotes/origin/master
|
||||||
|
|
||||||
|
# CFLAGS=-O0 means build with no optimisation.
|
||||||
|
# Makes build much quicker for lxml and other dependencies.
|
||||||
|
time CFLAGS=-O0 pip install --use-wheel diff_cover
|
|
@ -1,4 +1,3 @@
|
||||||
time CFLAGS=-O0 pip install --use-wheel diff_cover
|
|
||||||
coverage xml
|
coverage xml
|
||||||
diff-cover coverage.xml
|
diff-cover coverage.xml
|
||||||
diff-quality --violation=pep8
|
diff-quality --violation=pep8
|
Loading…
Reference in New Issue
Block a user