diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -8,8 +8,7 @@ setenv = VIRTUAL_ENV={envdir} passenv = TRACE_FAILONLY usedevelop = True install_command = - constraints: {[testenv:common-constraints]install_command} - pip install -U {opts} {packages} + pip install -U -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/liberty} {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = sh @@ -29,7 +28,6 @@ setenv = {[testenv]setenv} [testenv:api-constraints] basepython = {[testenv:api]basepython} -install_command = {[testenv:common-constraints]install_command} passenv = {[testenv:api]passenv} setenv = {[testenv:api]setenv} @@ -38,8 +36,13 @@ setenv = {[testenv:api]setenv} setenv = OS_TEST_TIMEOUT=180 commands = false -[testenv:common-constraints] -install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/liberty} {opts} {packages} +# TODO(ihrachys): remove this target once it is not used in gate +[testenv:py27-constraints] +basepython = python2.7 + +# TODO(ihrachys): remove this target once it is not used in gate +[testenv:py34-constraints] +basepython = python3.4 [testenv:dsvm] # Fake job to define environment variables shared between dsvm jobs @@ -60,7 +63,6 @@ deps = [testenv:functional-constraints] basepython = {[testenv:functional]basepython} -install_command = {[testenv:common-constraints]install_command} setenv = {[testenv:functional]setenv} deps = {[testenv:functional]deps} @@ -75,7 +77,6 @@ deps = [testenv:dsvm-functional-constraints] basepython = {[testenv:dsvm-functional]basepython} -install_command = {[testenv:common-constraints]install_command} setenv = {[testenv:dsvm-functional]setenv} sitepackages={[testenv:dsvm-functional]sitepackages} deps = @@ -91,7 +92,6 @@ deps = {[testenv:functional]deps} [testenv:dsvm-fullstack-constraints] -install_command = {[testenv:common-constraints]install_command} setenv = {[testenv:dsvm-fullstack]setenv} sitepackages={[testenv:dsvm-fullstack]sitepackages} @@ -103,6 +103,8 @@ sitepackages = True downloadcache = ~/cache/pip [testenv:releasenotes] +# TODO(ihrachys): remove once infra supports constraints for this target +install_command = pip install -U {opts} {packages} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:pep8] @@ -123,7 +125,6 @@ whitelist_externals = [testenv:pep8-constraints] basepython = {[testenv:pep8]basepython} -install_command = {[testenv:common-constraints]install_command} deps = {[testenv]deps} commands= @@ -137,28 +138,27 @@ commands= whitelist_externals = {[testenv:pep8]whitelist_externals} [testenv:cover] +# TODO(ihrachys): remove once infra supports constraints for this target +install_command = pip install -U {opts} {packages} basepython = python2.7 commands = python setup.py testr --coverage --testr-args='{posargs}' -[testenv:cover-constraints] -basepython = {[testenv:cover]basepython} -install_command = {[testenv:common-constraints]install_command} -commands = - python setup.py testr --coverage --testr-args='{posargs}' - [testenv:venv] +# TODO(ihrachys): remove once infra supports constraints for this target +install_command = pip install -U {opts} {packages} commands = {posargs} +# TODO(ihrachys): remove this target once it is not used in gate [testenv:venv-constraints] -install_command = {[testenv:common-constraints]install_command} +# TODO(ihrachys): remove once infra supports constraints for this target +install_command = pip install -U {opts} {packages} commands = {posargs} [testenv:docs] commands = sphinx-build -W -b html doc/source doc/build/html [testenv:docs-constraints] -install_command = {[testenv:common-constraints]install_command} commands = {[testenv:docs]commands} [flake8] |