Remove unnecessary pyNN testenv sections

According to [1], the pyNN factors automatically set basepython
unless explicitly requested otherwise.
This patch moves 'commands' attribute up into the 'testenv' section,
"testenv:pyNN" sections are unnecessary and also should be removed.

[1] https://github.com/tox-dev/tox/issues/477

Change-Id: I535188debcf89c91c887d0026bbf2157333ae2a4
This commit is contained in:
Vu Cong Tuan 2018-06-25 09:23:34 +07:00
parent d08b147ea4
commit a0f8c26b86
1 changed files with 1 additions and 19 deletions

20
tox.ini
View File

@ -11,6 +11,7 @@ setenv =
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = bash
commands = stestr run --black-regex ".tests.functional" {posargs}
[tox:jenkins]
downloadcache = ~/cache/pip
@ -23,15 +24,6 @@ commands = flake8
basepython = python3
commands = {posargs}
[testenv:py27]
commands =
stestr run --black-regex ".tests.functional" '{posargs}'
[testenv:py35]
basepython = python3
commands =
stestr run --black-regex ".tests.functional" '{posargs}'
[testenv:functional]
basepython = python2.7
setenv =
@ -39,14 +31,6 @@ setenv =
commands =
stestr run --black-regex ".tests.unit" '{posargs}'
[testenv:cover]
basepython = python3
commands =
coverage erase
python setup.py testr --coverage --testr-args='--concurrency=1 {posargs}'
coverage combine
coverage html --include='os_vif/*' -d covhtml -i
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
@ -91,5 +75,3 @@ deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
stestr run --black-regex ".tests.functional" '{posargs}'