Migrate to stestr
Since we're touching the coverage jobs, also fix the coverage configuration. Change-Id: I04d3da810c8a10c9d5a04b456d8bef10fc4f798f
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
source = {{cookiecutter.module_name}}
|
source = oslo_{{cookiecutter.module_name}}
|
||||||
omit = {{cookiecutter.module_name}}/tests/*,{{cookiecutter.module_name}}/openstack/*
|
omit = oslo_{{cookiecutter.module_name}}/tests/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
|
@@ -11,7 +11,7 @@ install_command =
|
|||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py test --slowest --testr-args='{posargs}'
|
commands = stestr run --slowest {posargs}
|
||||||
|
|
||||||
[testenv:common-constraints]
|
[testenv:common-constraints]
|
||||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
@@ -31,11 +31,27 @@ install_command = {[testenv:common-constraints]install_command}
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
deps = {[testenv]deps}
|
||||||
|
coverage
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source oslo_{{cookiecutter.module_name}} --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:cover-constraints]
|
[testenv:cover-constraints]
|
||||||
install_command = {[testenv:common-constraints]install_command}
|
install_command = {[testenv:common-constraints]install_command}
|
||||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
deps = {[testenv]deps}
|
||||||
|
coverage
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source oslo_{{cookiecutter.module_name}} --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
Reference in New Issue
Block a user