046858e37e
Update the nova URLs to point to the stable/stein branch. Change-Id: I73064f28820075120133d3e840f22b12d3bd2b74
105 lines
2.6 KiB
INI
105 lines
2.6 KiB
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = py36,py27,pep8
|
|
skipsdist = True
|
|
# Automatic envs (pyXX) will use the python version appropriate to that
|
|
# env and ignore basepython inherited from [testenv]. That's what we
|
|
# want, and we don't need to be warned about it.
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
LANGUAGE=en_US
|
|
LC_ALL=en_US.utf-8
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=60
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/nova@stable/stein#egg=nova
|
|
-rhttps://git.openstack.org/cgit/openstack/nova/plain/test-requirements.txt?h=stable/stein
|
|
whitelist_externals =
|
|
bash
|
|
commands =
|
|
|
|
[testenv:py27]
|
|
commands =
|
|
{[testenv]commands}
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:py35]
|
|
commands =
|
|
{[testenv]commands}
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:py36]
|
|
commands =
|
|
{[testenv]commands}
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:py37]
|
|
commands =
|
|
{[testenv]commands}
|
|
stestr run {posargs}
|
|
stestr slowest
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
# TODO(stephenfin): Remove the PYTHON hack below in favour of a [coverage]
|
|
# section once we rely on coverage 4.3+
|
|
#
|
|
# https://bitbucket.org/ned/coveragepy/issues/519/
|
|
setenv =
|
|
{[testenv]setenv}
|
|
PYTHON=coverage run --source nova,nova_powervm --parallel-mode
|
|
commands =
|
|
{[testenv]commands}
|
|
coverage erase
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
coverage report
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:bashate]
|
|
commands =
|
|
bash -c "ls devstack/*.sh | xargs bashate -v {posargs}"
|
|
whitelist_externals = bash
|
|
|
|
[flake8]
|
|
# N342 - Config Opts need to be outside nova/conf until powervm is part of nova proper
|
|
ignore = E125,N342
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|
|
|
|
[hacking]
|
|
local-check-factory = nova_powervm.hacking.checks.factory
|
|
|
|
[testenv:lower-constraints]
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
-egit+https://git.openstack.org/openstack/nova@stable/stein#egg=nova
|
|
-rhttps://git.openstack.org/cgit/openstack/nova/plain/test-requirements.txt?h=stable/stein
|