2013-01-21 09:12:55 +00:00
|
|
|
[tox]
|
2013-07-21 17:00:31 -04:00
|
|
|
distribute = False
|
2015-05-08 16:15:52 -04:00
|
|
|
envlist = py34,py26,py27,pep8
|
2013-01-21 09:12:55 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2013-06-13 10:20:30 +02:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-04-06 12:21:59 -04:00
|
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
2013-01-21 09:12:55 +00:00
|
|
|
|
|
|
|
[testenv:pep8]
|
2013-04-06 13:46:19 -04:00
|
|
|
commands = flake8
|
2013-03-21 16:35:26 +08:00
|
|
|
|
2013-01-21 09:12:55 +00:00
|
|
|
[testenv:cover]
|
2013-04-06 12:21:59 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage
|
|
|
|
|
2013-01-21 09:12:55 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2014-06-17 06:58:10 -07:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2013-04-06 13:46:19 -04:00
|
|
|
[flake8]
|
|
|
|
show-source = True
|
|
|
|
exclude = .tox,dist,doc,*.egg,build
|
2015-06-25 22:24:12 -04:00
|
|
|
|
|
|
|
[testenv:pip-missing-reqs]
|
|
|
|
# do not install test-requirements as that will pollute the virtualenv for
|
|
|
|
# determining missing packages
|
|
|
|
# this also means that pip-missing-reqs must be installed separately, outside
|
|
|
|
# of the requirements.txt files
|
|
|
|
deps = pip_missing_reqs
|
|
|
|
commands = pip-missing-reqs -d --ignore-module=oslo_config* --ignore-module=pkg_resources --ignore-file=oslo_config/tests/* --ignore-file=tests/ oslo_config
|