2014-06-08 15:43:06 -04:00
|
|
|
[tox]
|
|
|
|
minversion = 1.6
|
2015-10-05 00:38:22 -04:00
|
|
|
envlist = py34,py27,pep8
|
2014-06-08 15:43:06 -04:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-01-08 16:52:21 +09:00
|
|
|
whitelist_externals = find
|
2014-06-08 15:43:06 -04:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
2016-01-08 16:52:21 +09:00
|
|
|
find . -type f -name "*.pyc" -delete
|
2015-08-16 19:26:51 -04:00
|
|
|
ostestr {posargs}
|
2014-06-08 15:43:06 -04:00
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
sitepackages = False
|
|
|
|
commands =
|
|
|
|
flake8 {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
|
2014-09-03 09:10:00 -04:00
|
|
|
# H402 skipped because some docstrings aren't sentences
|
|
|
|
# E123 skipped because it is ignored by default in the default pep8
|
|
|
|
# E129 skipped because it is too limiting when combined with other rules
|
|
|
|
# H305 skipped because it is inconsistent between python versions
|
2014-10-04 00:07:02 -04:00
|
|
|
# E711 skipped because sqlalchemy filter() requires using == instead of is
|
|
|
|
ignore = E125,H402,E123,E129,H305,E711
|
2015-11-19 13:48:39 -05:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build,releasenotes
|
2014-09-29 18:56:46 +00:00
|
|
|
|
|
|
|
[testenv:generate_samples]
|
|
|
|
commands =
|
|
|
|
oslo-config-generator --config-file config-generator/subunit2sql.conf
|
|
|
|
oslo-config-generator --config-file config-generator/sql2subunit.conf
|
|
|
|
oslo-config-generator --config-file config-generator/subunit2sql-db-manage.conf
|
2015-11-19 13:48:39 -05:00
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|