Reduce tox.ini config duplication

Change-Id: Ia1a3f91602789c895bd23949c8a32c95b53359d1
This commit is contained in:
Jesse Pretorius 2016-07-21 18:01:01 +01:00
parent 14d4eb59b7
commit dd64d9e11a
1 changed files with 7 additions and 8 deletions

15
tox.ini
View File

@ -153,14 +153,17 @@ commands =
ansible-lint {toxinidir}
[testenv:functional]
[testenv:func_base]
# NOTE(odyssey4me): this target does not use constraints because
# it doesn't work in OpenStack-CI yet. Once that's fixed, we can
# drop the install_command.
#
# NOTE(automagically): this target tests neutron with linuxbridge
install_command =
pip install -U --force-reinstall {opts} {packages}
[testenv:functional]
# NOTE(automagically): this target tests neutron with linuxbridge
install_command =
{[testenv:func_base]install_command}
deps =
{[testenv:ansible]deps}
setenv =
@ -173,13 +176,9 @@ commands =
{toxinidir}/tests/test.yml -vvvv
[testenv:func_ovs]
# NOTE(odyssey4me): this target does not use constraints because
# it doesn't work in OpenStack-CI yet. Once that's fixed, we can
# drop the install_command.
#
# NOTE(automagically): this target tests neutron with ovs
install_command =
pip install -U --force-reinstall {opts} {packages}
{[testenv:func_base]install_command}
deps =
{[testenv:ansible]deps}
setenv =