evoque/tox.ini

40 lines
934 B
INI

[tox]
minversion = 1.6
envlist = py27,pep8
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args="{posargs}"
whitelist_externals = bash
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:pep8]
commands =
flake8 {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:genconfig]
commands = oslo-config-generator --config-file=evoque-config-generator.conf
[flake8]
ignore = E711,E712,H404,H405
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build
[hacking]
import_exceptions =
evoque.i18n