mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Move diff-cover commands to diffcover.sh
This commit is contained in:
parent
b72b6395c0
commit
d002e5f690
10
.travis.yml
10
.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
|
||||
|
|
5
Scripts/diffcover.sh
Executable file
5
Scripts/diffcover.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user