9d7c49e962
Adding a mitaka tox target, that will allow testing current code against mitaka upper constraints. Change-Id: Id112efac797b3f9a0a916dcd04896c703f4a570e
66 lines
2.4 KiB
INI
66 lines
2.4 KiB
INI
[tox]
|
|
envlist = py34,py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
whitelist_externals = bash
|
|
install_command =
|
|
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = bash tools/pretty_tox.sh '{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:py27-mitaka]
|
|
install_command =
|
|
{toxinidir}/tools/tox_install.sh https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/mitaka {opts} {packages}
|
|
|
|
[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}
|
|
|
|
[testenv:functional]
|
|
setenv =
|
|
OS_TEST_PATH = ./muranoclient/tests/functional
|
|
passenv = OS_*
|
|
|
|
[testenv:uitests]
|
|
# 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 = python setup.py testr --slowest --testr-args="--concurrency 1 {posargs}"
|
|
|
|
[testenv:cover]
|
|
# 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 = python setup.py testr --coverage --testr-args='--concurrency 1 {posargs}'
|
|
|
|
[testenv:pyflakes]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[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
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|