Need to run install or develop for coverage

This commit is contained in:
wiredfool 2017-12-28 10:52:39 +00:00
parent 7619018257
commit 3dc01995ca
2 changed files with 6 additions and 6 deletions

View File

@ -3,8 +3,8 @@
set -e set -e
coverage erase coverage erase
python setup.py clean make clean
CFLAGS="-coverage" python setup.py build_ext --inplace make install-coverage
python selftest.py python selftest.py
python -m pytest -vx --cov PIL --cov-report term Tests python -m pytest -vx --cov PIL --cov-report term Tests
@ -12,4 +12,4 @@ python -m pytest -vx --cov PIL --cov-report term Tests
pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd
# Docs # Docs
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then make install && make doccheck; fi if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then make doccheck; fi

View File

@ -50,15 +50,15 @@ help:
@echo " upload-test build and upload sdists to test.pythonpackages.com" @echo " upload-test build and upload sdists to test.pythonpackages.com"
inplace: clean inplace: clean
python setup.py build_ext --inplace python setup.py develop build_ext --inplace
install: install:
python setup.py install python setup.py install
python selftest.py --installed python selftest.py
install-coverage: install-coverage:
CFLAGS="-coverage" python setup.py build_ext install CFLAGS="-coverage" python setup.py build_ext install
python selftest.py --installed python selftest.py
debug: debug:
# make a debug version if we don't have a -dbg python. Leaves in symbols # make a debug version if we don't have a -dbg python. Leaves in symbols