Stop using setup.py [test|testr|build_sphinx]
These are all deprecated. For unit testing stestr should be used directly, and for doc builds sphinx-build should be used directly. A couple of minor doc changes were needed to eliminate warnings. Change-Id: Ic2e1b9d692c9b5866f888fb4c8c08bf95742764e
This commit is contained in:
parent
9e7ee5dd5c
commit
cd32029388
|
@ -12,3 +12,4 @@ cover
|
||||||
doc/build
|
doc/build
|
||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
.stestr/
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=${OS_TEST_PATH:-./openstack_virtual_baremetal/tests}
|
||||||
|
top_path=./
|
|
@ -1,4 +0,0 @@
|
||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./openstack_virtual_baremetal ./openstack_virtual_baremetal $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
|
@ -79,8 +79,8 @@ however.
|
||||||
that lists which BMC address corresponds to a given baremetal
|
that lists which BMC address corresponds to a given baremetal
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
Deleting an OVB Environment
|
Deleting a QuintupleO Environment
|
||||||
---------------------------
|
---------------------------------
|
||||||
|
|
||||||
All of the OpenStack resources created by OVB are part of the Heat stack, so
|
All of the OpenStack resources created by OVB are part of the Heat stack, so
|
||||||
to delete the environment just delete the Heat stack. There are a few local
|
to delete the environment just delete the Heat stack. There are a few local
|
||||||
|
|
|
@ -17,11 +17,6 @@ Table of Contents
|
||||||
troubleshooting
|
troubleshooting
|
||||||
api
|
api
|
||||||
|
|
||||||
Search
|
|
||||||
------
|
|
||||||
|
|
||||||
* :ref:`search`
|
|
||||||
|
|
||||||
Index
|
Index
|
||||||
-----
|
-----
|
||||||
* :ref:`genindex`
|
* :ref:`genindex`
|
||||||
|
|
|
@ -2,7 +2,7 @@ coverage>=3.6
|
||||||
discover
|
discover
|
||||||
fixtures>=0.3.14
|
fixtures>=0.3.14
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
testrepository>=0.0.18
|
stestr
|
||||||
testtools>=0.9.36,!=1.2.0
|
testtools>=0.9.36,!=1.2.0
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
|
|
||||||
|
|
20
tox.ini
20
tox.ini
|
@ -5,23 +5,35 @@ envlist = py36,py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv =
|
||||||
|
VIRTUAL_ENV={envdir}
|
||||||
|
OS_STDOUT_CAPTURE=1
|
||||||
|
OS_STDERR_CAPTURE=1
|
||||||
|
OS_TEST_TIMEOUT=60
|
||||||
|
OS_LOG_CAPTURE=1
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py test --coverage --coverage-package-name=openstack_virtual_baremetal --testr-args='{posargs}'
|
basepython = python3
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source openstack_virtual_baremetal --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run '{posargs}'
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
commands = python bin/environment-generator.py sample-env-generator --index doc/source/deploy/environment-index.rst
|
commands = python bin/environment-generator.py sample-env-generator --index doc/source/deploy/environment-index.rst
|
||||||
|
|
Loading…
Reference in New Issue