mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-06 12:53:12 +03:00
Fail fast: move installation stuff that's not needed in the script: section closer to where it's needed. This saves time by avoiding it when a test fails.
This commit is contained in:
parent
8b2e7ee48a
commit
339a63ed69
|
@ -16,10 +16,9 @@ python:
|
||||||
- 3.4
|
- 3.4
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- "sudo apt-get -qq install libfreetype6-dev liblcms2-dev python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick lcov"
|
- "sudo apt-get -qq install libfreetype6-dev liblcms2-dev python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick"
|
||||||
- "pip install cffi"
|
- "pip install cffi"
|
||||||
- "pip install coveralls nose coveralls-merge"
|
- "pip install coverage nose"
|
||||||
- "gem install coveralls-lcov"
|
|
||||||
|
|
||||||
# Pyroma installation is slow on Py3, so just do it for Py2.
|
# Pyroma installation is slow on Py3, so just do it for Py2.
|
||||||
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry pip install pyroma; fi
|
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then travis_retry pip install pyroma; fi
|
||||||
|
@ -42,13 +41,16 @@ script:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# gather the coverage data
|
# gather the coverage data
|
||||||
|
- sudo apt-get -qq install lcov
|
||||||
- lcov --capture --directory . -b . --output-file coverage.info
|
- lcov --capture --directory . -b . --output-file coverage.info
|
||||||
# filter to remove system headers
|
# filter to remove system headers
|
||||||
- lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
- lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
||||||
# convert to json
|
# convert to json
|
||||||
|
- gem install coveralls-lcov
|
||||||
- coveralls-lcov -v -n coverage.filtered.info > coverage.c.json
|
- coveralls-lcov -v -n coverage.filtered.info > coverage.c.json
|
||||||
|
|
||||||
- coverage report
|
- coverage report
|
||||||
|
- pip install coveralls-merge
|
||||||
- coveralls-merge coverage.c.json
|
- coveralls-merge coverage.c.json
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user