mirror of https://github.com/pypa/pip
Add a coverage job for Python 3 to tox
This commit is contained in:
parent
e9a0e4c3cd
commit
afbbacf136
|
@ -1,4 +1,4 @@
|
||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
omit =
|
omit =
|
||||||
pip/_vendor/*
|
src/pip/_vendor/*
|
||||||
|
|
|
@ -19,6 +19,7 @@ docs/build/
|
||||||
|
|
||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
.tox/
|
.tox/
|
||||||
|
htmlcov/
|
||||||
.coverage
|
.coverage
|
||||||
.coverage.*
|
.coverage.*
|
||||||
.cache
|
.cache
|
||||||
|
|
|
@ -2,6 +2,7 @@ freezegun
|
||||||
pretend
|
pretend
|
||||||
pytest
|
pytest
|
||||||
pytest-catchlog
|
pytest-catchlog
|
||||||
|
pytest-cov
|
||||||
pytest-rerunfailures
|
pytest-rerunfailures
|
||||||
pytest-timeout
|
pytest-timeout
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -14,6 +14,10 @@ commands = py.test --timeout 300 []
|
||||||
install_command = python -m pip install {opts} {packages}
|
install_command = python -m pip install {opts} {packages}
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
|
||||||
|
[testenv:coverage-py3]
|
||||||
|
basepython = python3
|
||||||
|
commands = py.test --timeout 300 --cov=pip --cov-report=term-missing --cov-report=xml --cov-report=html tests/unit {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps = -r{toxinidir}/docs-requirements.txt
|
deps = -r{toxinidir}/docs-requirements.txt
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
|
|
Loading…
Reference in New Issue