| [tox] |
| minversion = 1.6 |
| envlist = py34,py27,pypy,pep8 |
| skipsdist = True |
| |
| [testenv] |
| usedevelop = True |
| install_command = pip install -U {opts} {packages} |
| setenv = |
| VIRTUAL_ENV={envdir} |
| deps = -r{toxinidir}/test-requirements.txt |
| commands = stestr run --slowest {posargs} |
| |
| [testenv:pep8] |
| basepython = python3 |
| commands = flake8 |
| |
| [testenv:venv] |
| basepython = python3 |
| commands = {posargs} |
| |
| [testenv:cover] |
| setenv = |
| {[testenv]setenv} |
| PYTHON=coverage run --source tempest_horizon --parallel-mode |
| commands = |
| stestr run {posargs} |
| coverage combine |
| coverage html -d cover |
| coverage xml -o cover/coverage.xml |
| |
| [testenv:docs] |
| basepython = python3 |
| commands = python setup.py build_sphinx |
| |
| [testenv:debug] |
| basepython = python3 |
| commands = oslo_debug_helper {posargs} |
| |
| [flake8] |
| # E123, E125 skipped as they are invalid PEP-8. |
| |
| show-source = True |
| ignore = E123,E125,E129,H404,H405 |
| builtins = _ |
| exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |