b61b7b70ef
This populates the repository with a standard layout which was adapted from nova-specs. Change-Id: I75d80f9a80cc7e7a013c9229bb5b2b2cf7cf5ed6
34 lines
736 B
INI
34 lines
736 B
INI
[tox]
|
|
# Hold back to 1.4, since that's what's in Fedora 20 repos
|
|
# and we don't need anything newer for tests
|
|
minversion = 1.4
|
|
envlist = docs,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[flake8]
|
|
ignore = E128
|
|
exclude = .venv,.git,.tox,doc,.eggs
|