Move away from python setup.py test who is deprecated in pbr
https://docs.openstack.org/pbr/latest/user/features.html#test Change-Id: Ie5f7cf0d8eefed2ee756114ef5a145fe151b11b2
This commit is contained in:
parent
00d376edfb
commit
ee55593f66
8
tox.ini
8
tox.ini
@ -34,7 +34,13 @@ commands =
|
|||||||
sphinx-build -W --keep-going -b html doc/source doc/build/html
|
sphinx-build -W --keep-going -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --coverage-package-name=oslo_policy --testr-args='{posargs}'
|
setenv =
|
||||||
|
PYTHON=coverage run --source oslo_policy --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run --slowest {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage report
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
show-source = True
|
show-source = True
|
||||||
|
Loading…
Reference in New Issue
Block a user