Update to latest tox
This commit updates to the latest tox, it also updates the tox.ini to use develop instead of sdist/install. Change-Id: I1ef044a5638be99fc060fd30c1cbd5ea8283e881
This commit is contained in:
parent
499357db48
commit
7228e1149f
12
tox.ini
12
tox.ini
@ -1,11 +1,14 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = pep8
|
envlist = pep8
|
||||||
|
minversion = 1.6
|
||||||
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
LANG=en_US.UTF-8
|
LANG=en_US.UTF-8
|
||||||
LANGUAGE=en_US:en
|
LANGUAGE=en_US:en
|
||||||
LC_ALL=C
|
LC_ALL=C
|
||||||
|
usedevelop = True
|
||||||
|
|
||||||
[testenv:all]
|
[testenv:all]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
@ -15,7 +18,6 @@ commands =
|
|||||||
|
|
||||||
[testenv:full]
|
[testenv:full]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
# The regex below is used to select which tests to run and exclude the slow tag:
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
||||||
# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
||||||
commands =
|
commands =
|
||||||
@ -23,21 +25,18 @@ commands =
|
|||||||
|
|
||||||
[testenv:testr-full]
|
[testenv:testr-full]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
commands =
|
commands =
|
||||||
sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
|
sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
|
||||||
|
|
||||||
[testenv:heat-slow]
|
[testenv:heat-slow]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = OS_TEST_TIMEOUT=1200
|
||||||
OS_TEST_TIMEOUT=1200
|
|
||||||
# The regex below is used to select heat api/scenario tests tagged as slow.
|
# The regex below is used to select heat api/scenario tests tagged as slow.
|
||||||
commands =
|
commands =
|
||||||
sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}'
|
sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}'
|
||||||
|
|
||||||
[testenv:large-ops]
|
[testenv:large-ops]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}'
|
python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}'
|
||||||
|
|
||||||
@ -69,7 +68,6 @@ commands =
|
|||||||
|
|
||||||
[testenv:smoke]
|
[testenv:smoke]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
# This is still serial because neutron doesn't work with parallel. See:
|
# This is still serial because neutron doesn't work with parallel. See:
|
||||||
# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
|
# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
|
||||||
# job would fail if we moved it to parallel.
|
# job would fail if we moved it to parallel.
|
||||||
@ -78,7 +76,6 @@ commands =
|
|||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
commands =
|
commands =
|
||||||
python -m tools/tempest_coverage -c start --combine
|
python -m tools/tempest_coverage -c start --combine
|
||||||
sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests))'
|
sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests))'
|
||||||
@ -86,7 +83,6 @@ commands =
|
|||||||
|
|
||||||
[testenv:stress]
|
[testenv:stress]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
|
||||||
commands =
|
commands =
|
||||||
python -m tempest/stress/run_stress -a -d 3600 -S
|
python -m tempest/stress/run_stress -a -d 3600 -S
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user