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.

This commit is contained in:
hugovk 2014-06-30 23:57:16 +03:00
parent 3ea4780bdc
commit b72b6395c0

View File

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