openstack-virtual-baremetal/tox.ini
Ben Nemec 9fe31995c5 Reorganize into package and add tox for testing
Moves the functional code into an openstack_virtual_baremetal env
and adds a tox configuration for testing.  Existing unit tests for
deploy.py are moved into the tests subpackage.  Further unit tests
for the other modules will be added in followup commits.

Symlinks from the bin directory are left so the previous workflow
should continue to work as before.
2016-07-14 12:23:41 -05:00

30 lines
630 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py34,py27,pep8
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:pep8]
deps = flake8
commands = flake8
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=openstack_virtual_baremetal --testr-args='{posargs}'
[flake8]
ignore = H803
show-source = True
exclude = .tox,dist,doc,*.egg,build