31 lines
777 B
INI
31 lines
777 B
INI
[tox]
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
envlist = py34,py27,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --coverage-package-name=tripleo_repos --testr-args='{posargs}'
|
|
|
|
[flake8]
|
|
ignore = H803
|
|
show-source = True
|
|
exclude = .tox,dist,doc,*.egg,build
|