Browse Source

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: I48215dec6a37b0f99e65aa29219d8a80e8e44fec
Heba Naser 9 months ago
parent
commit
f77205b26e
2 changed files with 1 additions and 26 deletions
  1. 0
    9
      test-requirements.txt
  2. 1
    17
      tox.ini

+ 0
- 9
test-requirements.txt View File

@@ -1,9 +0,0 @@
1
-# The order of packages is significant, because pip processes them in the order
2
-# of appearance. Changing the order has an impact on the overall integration
3
-# process, which may cause wedges in the gate later.
4
-bashate>=0.5.1 # Apache-2.0
5
-flake8<2.6.0,>=2.5.4 # MIT
6
-pyasn1!=0.2.3,>=0.1.8 # BSD
7
-pyOpenSSL>=17.1.0 # Apache-2.0
8
-requests>=2.14.2 # Apache-2.0
9
-ndg-httpsclient>=0.4.2;python_version<'3.0' # BSD

+ 1
- 17
tox.ini View File

@@ -8,8 +8,6 @@ envlist = docs,linters,functional
8 8
 usedevelop = True
9 9
 install_command =
10 10
     pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
11
-deps =
12
-    -r{toxinidir}/test-requirements.txt
13 11
 commands =
14 12
     /usr/bin/find . -type f -name "*.pyc" -delete
15 13
 passenv =
@@ -74,38 +72,24 @@ commands =
74 72
     bash -c "{toxinidir}/tests/common/test-bashate.sh"
75 73
 
76 74
 
77
-[testenv:ansible]
78
-deps =
79
-    {[testenv]deps}
80
-    -rhttps://git.openstack.org/cgit/openstack/openstack-ansible/plain/global-requirement-pins.txt
81
-    -rhttps://git.openstack.org/cgit/openstack/openstack-ansible-tests/plain/test-ansible-deps.txt
82
-
83
-
84 75
 [testenv:ansible-syntax]
85
-deps =
86
-    {[testenv:ansible]deps}
87 76
 commands =
88 77
     bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
89 78
 
90 79
 
91 80
 [testenv:ansible-lint]
92
-deps =
93
-    {[testenv:ansible]deps}
94 81
 commands =
95 82
     bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
96 83
 
97 84
 
98 85
 [testenv:functional]
99
-deps =
100
-    {[testenv:ansible]deps}
101 86
 commands =
102 87
     bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
103 88
 
104 89
 
105 90
 [testenv:linters]
106
-deps =
107
-    {[testenv:ansible]deps}
108 91
 commands =
92
+    bash -c "{toxinidir}/tests/common/test-ansible-env-prep.sh"
109 93
     {[testenv:pep8]commands}
110 94
     {[testenv:bashate]commands}
111 95
     {[testenv:ansible-lint]commands}

Loading…
Cancel
Save