Merge "Use upper-constraints in tox test environments"

This commit is contained in:
Jenkins
2016-06-01 23:29:56 +00:00
committed by Gerrit Code Review

10
tox.ini
View File

@@ -5,7 +5,7 @@ skipsdist = True
[testenv] [testenv]
basepython=python2.7 basepython=python2.7
install_command = pip install -U {opts} {packages} install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
INTEGRATION_TESTS=0 INTEGRATION_TESTS=0
@@ -86,6 +86,10 @@ commands =
/bin/bash {toxinidir}/run_tests.sh --compilemessages -N /bin/bash {toxinidir}/run_tests.sh --compilemessages -N
[testenv:venv] [testenv:venv]
# NOTE(from nova tox.ini by jaegerandi): 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 -U --force-reinstall {opts} {packages}
commands = {posargs} commands = {posargs}
[testenv:manage] [testenv:manage]
@@ -127,6 +131,10 @@ setenv = DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
commands = {envpython} {toxinidir}/setup.py build_sphinx commands = {envpython} {toxinidir}/setup.py build_sphinx
[testenv:releasenotes] [testenv:releasenotes]
# NOTE(from nova tox.ini by jaegerandi): 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 -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:runserver] [testenv:runserver]