diff options
author | Pavlo Shchelokovskyy <pshchelokovskyy@mirantis.com> | 2015-08-31 14:52:16 +0000 |
---|---|---|
committer | Sergey Kraynev <skraynev@mirantis.com> | 2016-03-25 13:40:50 +0000 |
commit | dd50ac63523167b50d5793a0f634a3a049c15c9f (patch) | |
tree | 68a4e2f0fe69f45fc1b8ccf6bd0d847a58118bad /tox.ini | |
parent | e597e17175d67b809bcf4d2a0d7f09f23ab05dfe (diff) | |
download | heat-dd50ac63523167b50d5793a0f634a3a049c15c9f.tar.gz |
Create integration tests requirements on the fly
The problem of integration tests was that they use their own
requirements.txt that is unable to auto-sync with global requirements.
This patch removes dedicated requirements.txt and replaces it with a
stub file listing names (and possibly versions) of the packages needed.
Then a special script parses this stub file, and for every package
that is present in main project requirements files it pulls the versions
from main project requirements, generating and installing requirements
for the integration tests on the fly.
This will help keeping requirements for the integration tests always in
sync with main project requirements.
Change-Id: Ie79338cc10cc101fbf15b51c7923e3a7b8e4fbb4
Closes-Bug: #1490866
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -28,7 +28,8 @@ setenv = VIRTUAL_ENV={envdir} TESTR_START_DIR=heat_integrationtests passenv = OS_* usedevelop = False -deps = -r{toxinidir}/heat_integrationtests/requirements.txt +install_command = {toxinidir}/heat_integrationtests/install-requirements --stub {toxinidir}/heat_integrationtests/requirements.stub --source {toxinidir}/requirements.txt --source {toxinidir}/test-requirements.txt {packages} {opts} +deps = -t{toxinidir}/heat_integrationtests/requirements.txt commands = bash tools/pretty_tox.sh '{posargs}' |