Add tox "requirements" env
This patch adds the "requirements" env to tox to allow local requirements test runs. Change-Id: I00f0307784137e5f7555105f992a0ccc5bc16838
This commit is contained in:
parent
307b15e2a3
commit
3a55b28428
8
tox.ini
8
tox.ini
|
@ -83,3 +83,11 @@ deps =
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
commands =
|
||||||
sh -c 'OS_TEST_PATH={toxinidir}/octavia_lib/tests/unit stestr run {posargs}'
|
sh -c 'OS_TEST_PATH={toxinidir}/octavia_lib/tests/unit stestr run {posargs}'
|
||||||
|
|
||||||
|
[testenv:requirements]
|
||||||
|
basepython = python3
|
||||||
|
deps =
|
||||||
|
-egit+https://opendev.org/openstack/requirements#egg=openstack-requirements
|
||||||
|
whitelist_externals = sh
|
||||||
|
commands =
|
||||||
|
sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
|
||||||
|
|
Loading…
Reference in New Issue