From e64a0253cebd63f52cfd123d2846ebca4e822125 Mon Sep 17 00:00:00 2001 From: Heba Naser Date: Mon, 2 Jul 2018 11:45:07 -0400 Subject: [PATCH] Use tests repo for common role test requirements Using tox for requirements management requires in-repo requirements files for all our repositories. Rather than do that, we make use of the tests repo to capture our common requirements and use this to install them. This reduces our review requirement rate and simplifies maintenance for us for the tox config. It also makes it usable with 'Depends-On', which is marvellous! The tox requirements definitions for docs/releasenotes builds are left in-place as those are standard entries across the community. If that changes at some point, we can re-assess those entries too. Depends-On: https://review.openstack.org/579208 Change-Id: Icc31c4913238d3608ff05d54f47099a3377dd32d --- test-requirements.txt | 9 --------- tox.ini | 20 +------------------- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 test-requirements.txt diff --git a/test-requirements.txt b/test-requirements.txt deleted file mode 100644 index 82506c5..0000000 --- a/test-requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. -bashate>=0.5.1 # Apache-2.0 -flake8<2.6.0,>=2.5.4 # MIT -pyasn1!=0.2.3,>=0.1.8 # BSD -pyOpenSSL>=17.1.0 # Apache-2.0 -requests>=2.14.2 # Apache-2.0 -ndg-httpsclient>=0.4.2;python_version<'3.0' # BSD diff --git a/tox.ini b/tox.ini index c391285..234036f 100755 --- a/tox.ini +++ b/tox.ini @@ -8,8 +8,6 @@ envlist = docs,linters,functional usedevelop = True install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} -deps = - -r{toxinidir}/test-requirements.txt commands = /usr/bin/find . -type f -name "*.pyc" -delete passenv = @@ -73,37 +71,22 @@ commands = bash -c "{toxinidir}/tests/common/test-bashate.sh" -[testenv:ansible] -deps = - {[testenv]deps} - -rhttps://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt - -rhttps://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt - - [testenv:ansible-syntax] -deps = - {[testenv:ansible]deps} commands = bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh" [testenv:ansible-lint] -deps = - {[testenv:ansible]deps} commands = bash -c "{toxinidir}/tests/common/test-ansible-lint.sh" [testenv:functional] -deps = - {[testenv:ansible]deps} commands = bash -c "{toxinidir}/tests/common/test-ansible-functional.sh" [testenv:ssl] -deps = - {[testenv:ansible]deps} setenv = {[testenv]setenv} ANSIBLE_PARAMETERS=-vvv -e galera_use_ssl=True @@ -112,9 +95,8 @@ commands = [testenv:linters] -deps = - {[testenv:ansible]deps} commands = + bash -c "{toxinidir}/tests/common/test-ansible-env-prep.sh" {[testenv:pep8]commands} {[testenv:bashate]commands} {[testenv:ansible-lint]commands}