Helena McGough bdc51defdc First implementation of the new rsd-virt-for-nova driver
- Includes driver code
 - Some unit tests
 - Some documentation
 - Devstack installation plugin

Change-Id: Ie3b2483fbf587a037a3fd9d6af1bd64fa5635ed2
Signed-off-by: Helena McGough <helena.mcgough@intel.com>
2019-02-25 14:29:05 +00:00

63 lines
1.7 KiB
INI

# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 2.0
envlist = py27,py36,pycodestyle
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
#{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}
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
[testenv:pycodestyle]
commands =
flake8 {posargs}
pycodestyle {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source rsd_virt_for_nova --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:py27]
basepython = python2.7
commands =
stestr run {posargs}
[testenv:py36]
commands =
stestr run {posargs}
[flake8]
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,N342
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,tools/xenserver*,releasenotes,*openstack/common*,*src,*/src
[pycodestyle]
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,N342
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,tools/xenserver*,releasenotes,*openstack/common*,*src,*/src