diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2016-12-13 15:25:40 +1100 |
---|---|---|
committer | Tony Breeds <tony@bakeyournoodle.com> | 2016-12-20 14:37:57 +1100 |
commit | 4fbb2c86e34b578e0d09931330161dccd192397d (patch) | |
tree | 8a05c86df361a780c30396226b9c58ebdb7051f4 /tox.ini | |
parent | 268c8be98329b2e2dcf839222b5f44729cbf6607 (diff) | |
download | oslotest-4fbb2c86e34b578e0d09931330161dccd192397d.tar.gz |
Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove oslotest.
Change-Id: I21e2d0555334a1bd7ad8aa37796f599292b30ed0
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,8 +1,14 @@ [tox] +minversion = 2.0 distribute = False envlist = py35,py34,py27,pep8 [testenv] +setenv = + VIRTUAL_ENV={envdir} + BRANCH_NAME=master + CLIENT_NAME=oslotest +install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' @@ -10,7 +16,6 @@ commands = python setup.py testr --slowest --testr-args='{posargs}' commands = flake8 [testenv:cover] -setenv = VIRTUAL_ENV={envdir} commands = python setup.py test --coverage --testr-args='{posargs}' |