tox: Drop envdir
tox now always recreates an env although the env is shared using envdir options. ~~~ $ tox -e genpolicy genpolicy: recreate env because env type changed from {'name': 'genconfig', 'type': 'VirtualEnvRunner'} to {'name': 'genpolicy', 'type': 'VirtualEnvRunner'} ~~~ According to the maintainer of tox, this functionality is not intended to be supported. https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293 Change-Id: I92eb0cdf98910b97523a9453a073ba238ee702ee
This commit is contained in:
parent
e10099bd80
commit
86f722db42
12
tox.ini
12
tox.ini
@ -35,41 +35,34 @@ commands =
|
||||
stestr --test-path=./placement/tests/functional run {posargs}
|
||||
|
||||
[testenv:functional-py38]
|
||||
envdir = {toxworkdir}/py38
|
||||
commands =
|
||||
{[testenv:functional]commands}
|
||||
|
||||
[testenv:functional-py39]
|
||||
envdir = {toxworkdir}/py39
|
||||
commands =
|
||||
{[testenv:functional]commands}
|
||||
|
||||
[testenv:functional-py310]
|
||||
envdir = {toxworkdir}/py310
|
||||
commands =
|
||||
{[testenv:functional]commands}
|
||||
|
||||
[testenv:pep8]
|
||||
description =
|
||||
Run style checks.
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
bash tools/flake8wrap.sh {posargs}
|
||||
|
||||
[testenv:fast8]
|
||||
description =
|
||||
Run style checks on the changes made since HEAD~. For a full run including docs, use 'pep8'
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
bash tools/flake8wrap.sh -HEAD
|
||||
|
||||
[testenv:genconfig]
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
oslo-config-generator --config-file=etc/placement/config-generator.conf
|
||||
|
||||
[testenv:genpolicy]
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
oslopolicy-sample-generator --config-file=etc/placement/policy-generator.conf
|
||||
|
||||
@ -78,7 +71,6 @@ commands =
|
||||
# section once we rely on coverage 4.3+
|
||||
#
|
||||
# https://bitbucket.org/ned/coveragepy/issues/519/
|
||||
envdir = {toxworkdir}/shared
|
||||
setenv =
|
||||
{[testenv]setenv}
|
||||
PYTHON=coverage run --source placement --parallel-mode
|
||||
@ -91,7 +83,6 @@ commands =
|
||||
coverage report
|
||||
|
||||
[testenv:debug]
|
||||
envdir = {toxworkdir}/shared
|
||||
commands =
|
||||
oslo_debug_helper {posargs}
|
||||
|
||||
@ -125,7 +116,6 @@ commands =
|
||||
[testenv:api-ref]
|
||||
description =
|
||||
Generate the API ref. Called from CI scripts to test and publish to docs.openstack.org.
|
||||
envdir = {toxworkdir}/docs
|
||||
deps = {[testenv:docs]deps}
|
||||
commands =
|
||||
rm -rf api-ref/build
|
||||
@ -134,7 +124,6 @@ commands =
|
||||
[testenv:releasenotes]
|
||||
description =
|
||||
Generate release notes.
|
||||
envdir = {toxworkdir}/docs
|
||||
deps = {[testenv:docs]deps}
|
||||
commands =
|
||||
rm -rf releasenotes/build
|
||||
@ -143,7 +132,6 @@ commands =
|
||||
[testenv:bandit]
|
||||
# NOTE(browne): This is required for the integration test job of the bandit
|
||||
# project. Please do not remove.
|
||||
envdir = {toxworkdir}/shared
|
||||
commands = bandit -r placement -x tests -n 5 -ll
|
||||
|
||||
[flake8]
|
||||
|
Loading…
Reference in New Issue
Block a user