2013-10-31 21:14:00 +07:00
|
|
|
[tox]
|
2015-01-09 18:36:59 -08:00
|
|
|
envlist = py27,py33,py34,pep8
|
2013-10-31 21:14:00 +07:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2014-06-02 17:17:04 +04:00
|
|
|
sitepackages = True
|
2013-10-31 21:14:00 +07:00
|
|
|
usedevelop = True
|
2014-06-02 17:17:04 +04:00
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2015-01-09 18:36:59 -08:00
|
|
|
PYTHONDONTWRITEBYTECODE = 1
|
2015-07-16 11:25:30 +06:00
|
|
|
deps = -r{toxinidir}/test-requirements.txt
|
2014-06-02 17:17:04 +04:00
|
|
|
commands =
|
2015-09-09 12:23:43 +03:00
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2014-10-08 10:51:04 +02:00
|
|
|
whitelist_externals = rm
|
2013-10-31 21:14:00 +07:00
|
|
|
|
2015-07-23 12:13:52 +03:00
|
|
|
[testenv:unit-postgresql]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2015-08-06 16:22:33 +03:00
|
|
|
passenv = ZUUL_PROJECT
|
2015-07-23 12:13:52 +03:00
|
|
|
commands = ./run_tests.sh -V --db-type postgresql
|
|
|
|
|
2013-10-31 21:14:00 +07:00
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8 {posargs}
|
|
|
|
|
2014-06-02 17:17:04 +04:00
|
|
|
[testenv:cover]
|
|
|
|
# Also do not run test_coverage_ext tests while gathering coverage as those
|
|
|
|
# tests conflict with coverage.
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
|
|
python setup.py testr --coverage \
|
|
|
|
--testr-args='^(?!.*test.*coverage).*$'
|
|
|
|
|
2015-05-26 12:53:32 +03:00
|
|
|
[testenv:genconfig]
|
|
|
|
commands =
|
|
|
|
oslo-config-generator --config-file tools/config/config-generator.mistral.conf \
|
|
|
|
--output-file etc/mistral.conf.sample
|
|
|
|
|
2013-10-31 21:14:00 +07:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2015-08-20 22:05:39 +08:00
|
|
|
commands = python setup.py build_sphinx
|
2013-10-31 21:14:00 +07:00
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands = bash tools/lintstack.sh
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
show-source = true
|
2015-07-16 10:48:06 +08:00
|
|
|
ignore = H405
|
2013-10-31 21:14:00 +07:00
|
|
|
builtins = _
|
2014-06-19 16:07:53 +07:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools,scripts
|
2015-07-11 20:39:59 +00:00
|
|
|
|
|
|
|
[hacking]
|
2015-07-16 10:48:06 +08:00
|
|
|
local-check-factory = mistral.hacking.checks.factory
|