From 00567f3a76e6da6bb98a3abb385c1eaa7c4e5d5e Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Wed, 30 Mar 2016 14:06:34 +0100 Subject: [PATCH] Use upper-constraints.txt for tox tests Change-Id: I18b946269c3452d20205fbba392d7216cf4c92ee --- tox.ini | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e4bb20241..bc0bd194a 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ skipsdist = True [testenv] usedevelop = True -install_command = pip install {opts} {packages} +install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=master} {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt setenv = @@ -36,6 +36,10 @@ commands = rm -rf doc/build sphinx-build -E -W -b html doc/source doc/build/html [testenv:cover] +# NOTE(kiall): this target does not use constraints because upstream infra does +# not yet support it. Once that's fixed, we can drop the +# install_command. +install_command = pip install {opts} {packages} commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:bandit] @@ -94,9 +98,17 @@ passenv = TEMPEST_CONFIG OS_DEBUG [testenv:releasenotes] +# NOTE(kiall): this target does not use constraints because upstream infra does +# not yet support it. Once that's fixed, we can drop the +# install_command. +install_command = pip install {opts} {packages} commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:venv] +# NOTE(kiall): this target does not use constraints because upstream infra does +# not yet support it. Once that's fixed, we can drop the +# install_command. +install_command = pip install {opts} {packages} commands = {posargs} [flake8]