mox3/tox.ini

31 lines
682 B
INI

[tox]
minversion = 2.0
envlist = py35,py27,pep8
[testenv]
install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
python setup.py testr --coverage
[flake8]
show-source = true
ignore = E721
exclude=.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg