Files
f5646a313ca3fc7ac77745671e4c1a43dcd3138c
networking-bgpvpn /tox.ini

99 lines
2.9 KiB
INI
Raw Normal View History

minversion = 1.6
[testenv]
usedevelop = True
VIRTUAL_ENV={envdir}
-r{toxinidir}/test-requirements.txt
{[testenv]deps}
flake8
pylint --rcfile=.pylintrc --output-format=colorized doc/source/samples
setenv = OS_FAIL_ON_MISSING_DEPS=1
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
[testenv:functional]
setenv = {[testenv]setenv}
OS_TEST_TIMEOUT=180
OS_TEST_PATH=./networking_bgpvpn/tests/functional
OS_LOG_PATH={env:OS_LOG_PATH:/opt/stack/logs}
deps =
{[testenv]deps}
-r{toxinidir}/networking_bgpvpn/tests/functional/requirements.txt
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
[testenv:dsvm-functional]
basepython = python2.7
setenv = {[testenv:functional]setenv}
{[testenv:dsvm]setenv}
sitepackages=True
deps =
{[testenv:functional]deps}
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:api]
sitepackages = True
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/networking_bgpvpn_tempest/tests/api
OS_TESTR_CONCURRENCY=1
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc
[testenv:scenario]
sitepackages = True
passenv = TEMPEST_CONFIG_DIR
setenv =
OS_TEST_PATH={toxinidir}/networking_bgpvpn_tempest/tests/scenario
OS_TESTR_CONCURRENCY=1
setenv = OS_FAIL_ON_MISSING_DEPS=1
commands = {posargs}
[testenv:cover]
commands =
python setup.py test --coverage --coverage-package-name=networking_bgpvpn --omit="*/tests/*" --testr-args='{posargs}'
coverage report --omit="*/tests/*" -m
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:debug]
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125
builtins = _