Merge "Add coverage job"
This commit is contained in:
commit
790273db20
@ -2,6 +2,7 @@
|
||||
queue: freezer
|
||||
templates:
|
||||
- check-requirements
|
||||
- openstack-cover-jobs
|
||||
- openstack-python3-jobs
|
||||
- openstack-python3-jobs-arm64
|
||||
- publish-openstack-docs-pti
|
||||
|
12
tox.ini
12
tox.ini
@ -44,6 +44,18 @@ basepython = python3.9
|
||||
[testenv:py312]
|
||||
basepython = python3.12
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source freezerclient --parallel-mode
|
||||
commands =
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[testenv:docs]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands = sphinx-build -b html doc/source doc/build/html
|
||||
|
Loading…
Reference in New Issue
Block a user