neutron-lib/tox.ini
Henry Gessau 452c3ab8a8 Improvements to tox envs
- Actually depend on requirements.txt
- Run unit tests with ostestr
- Inform testr of location of unit tests
- Fix coverage job and include report
- Keep PEP8 strict; it's not annoying yet
- Remove vestiges of oslo incubator handling

Change-Id: I2465d18bee8e242e049d2d5e30dfcf472a49c0c4
2015-12-19 01:00:22 -05:00

39 lines
765 B
INI

[tox]
minversion = 2.0
envlist = py34,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
passenv = TRACE_FAILONLY
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
ostestr --regex '{posargs}'
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
python setup.py test --coverage --coverage-package-name=neutron_lib --testr-args='{posargs}'
coverage report
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
show-source = True
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build