Files
openstacksdk/tox.ini
TerryHowe 785d3f1d3a Use ostestr for tests
The ostestr command has nicer output and it seems like it is going
to have better filtering.

Change-Id: Ia0210b52dee4d1bf56e590e85bbb3ff73d4c0573
2015-06-22 10:57:39 -06:00

36 lines
864 B
INI

[tox]
minversion = 1.6
envlist = py33,py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
[testenv:functional]
setenv = OS_TEST_PATH=./openstack/tests/functional
passenv = OS_*
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
; If this fails for you, you may be running an old version of tox.
; Run 'pip install tox' to install a newer version of tox.
[testenv:cover]
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
show-source = True
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build