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:
Michael Johnson 2019-06-20 13:12:33 -07:00
parent 307b15e2a3
commit 3a55b28428
1 changed files with 8 additions and 0 deletions

View File

@ -83,3 +83,11 @@ deps =
whitelist_externals = sh
commands =
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'