Merge "fix tox python3 overrides"

This commit is contained in:
Zuul 2018-06-24 00:18:17 +00:00 committed by Gerrit Code Review
commit ce5e47ce96
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -20,9 +20,11 @@ commands =
stestr slowest
[testenv:releasenotes]
basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:pep8]
basepython = python3
commands =
flake8
# pylint --rcfile=.pylintrc --output-format=colorized {posargs:neutron_lbaas}
@ -31,6 +33,7 @@ commands =
whitelist_externals = sh
[testenv:cover]
basepython = python3
setenv =
{[testenv]setenv}
PYTHON=coverage run --source neutron_lbaas --parallel-mode
@ -40,9 +43,11 @@ commands =
coverage report
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[flake8]
@ -77,6 +82,7 @@ deps =
-r{toxinidir}/neutron_lbaas/tests/functional/requirements.txt
[testenv:dsvm-functional]
basepython = python3
setenv = {[testenv]setenv}
{[testenv:functional]setenv}
OS_SUDO_TESTING=1
@ -91,6 +97,7 @@ commands =
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:apiv2]
basepython = python3
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/api
@ -101,6 +108,7 @@ commands =
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:scenario]
basepython = python3
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/scenario
@ -111,6 +119,7 @@ commands =
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:ddt]
basepython = python3
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/neutron_lbaas/tests/tempest/v2/ddt
@ -119,6 +128,7 @@ commands =
stestr slowest
[testenv:genconfig]
basepython = python3
commands = {toxinidir}/tools/generate_config_file_samples.sh
[testenv:lower-constraints]