Always use upper-constraints

This patch modify tox.ini to always use upper-constraints.

Change-Id: I113dd658afebe843db304be6cbc4b1ec5df5d248
This commit is contained in:
Ethan Lynn 2016-07-27 14:07:00 +08:00
parent 072944d91d
commit 2e6ce70695
1 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ skipsdist = True
[testenv] [testenv]
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
usedevelop = True 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} {opts} {packages}
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
commands = commands =
@ -40,9 +40,13 @@ commands =
python tools/custom_guidelines.py --exclude heat/engine/resources/aws python tools/custom_guidelines.py --exclude heat/engine/resources/aws
[testenv:venv] [testenv:venv]
# Note: infra doesn't support to use of constraints for this target.
install_command = pip install -U --force-reinstall {opts} {packages}
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
# Note: infra doesn't support to use of constraints for this target.
install_command = pip install -U --force-reinstall {opts} {packages}
commands = commands =
python setup.py testr --coverage --testr-args='^(?!heat_integrationtests){posargs}' python setup.py testr --coverage --testr-args='^(?!heat_integrationtests){posargs}'
@ -92,6 +96,8 @@ local-check-factory = heat.hacking.checks.factory
commands = oslo_debug_helper {posargs} commands = oslo_debug_helper {posargs}
[testenv:releasenotes] [testenv:releasenotes]
# Note: infra doesn't support to use of constraints for this target.
install_command = pip install -U --force-reinstall {opts} {packages}
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:install-guide] [testenv:install-guide]