From 3a55b28428ff7b58f432ad3282d63d9b006e48af Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 20 Jun 2019 13:12:33 -0700 Subject: [PATCH] Add tox "requirements" env This patch adds the "requirements" env to tox to allow local requirements test runs. Change-Id: I00f0307784137e5f7555105f992a0ccc5bc16838 --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index df6c585..3196396 100644 --- a/tox.ini +++ b/tox.ini @@ -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'