2014-07-01 17:11:09 +09:00
|
|
|
[tox]
|
2015-12-25 22:47:42 +01:00
|
|
|
# TODO(yamahata): enable tests of py34.
|
2014-07-01 17:11:09 +09:00
|
|
|
# Those unit tests are temporalily disabled until its stabilization
|
2015-12-25 22:47:42 +01:00
|
|
|
#envlist = py27,py34,pep8
|
2015-10-15 02:47:33 +00:00
|
|
|
envlist = docs,pep8,py27
|
2014-07-01 17:11:09 +09:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
|
|
|
|
2014-07-01 18:10:38 +09:00
|
|
|
# TODO(yamahata): re-enable unit tests again
|
|
|
|
# disable unit tests for now until stabilization
|
2014-09-03 19:11:38 +00:00
|
|
|
[testenv:py34]
|
|
|
|
commands = bash -c "echo do nothing for py34 for now. enable after stablized"
|
2014-07-01 18:10:38 +09:00
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[testenv]
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2014-06-26 17:50:34 +09:00
|
|
|
setuptools-git>=0.4
|
2014-07-01 17:11:09 +09:00
|
|
|
commands =
|
2016-06-02 17:39:51 +08:00
|
|
|
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv:functional]
|
2014-06-26 17:50:34 +09:00
|
|
|
setenv = OS_TEST_PATH=./tacker/tests/functional
|
2015-09-09 01:05:36 +00:00
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
2014-07-01 17:11:09 +09:00
|
|
|
|
2016-03-21 14:54:58 +08:00
|
|
|
[testenv:dsvm-functional]
|
|
|
|
basepython = python2.7
|
2016-06-02 17:39:51 +08:00
|
|
|
setenv = {[testenv]setenv}
|
2016-03-21 14:54:58 +08:00
|
|
|
{[testenv:functional]setenv}
|
|
|
|
deps =
|
|
|
|
{[testenv:functional]deps}
|
|
|
|
commands =
|
2016-04-21 09:00:36 +00:00
|
|
|
{toxinidir}/tools/ostestr_compat_shim.sh --concurrency 2 {posargs}
|
2016-03-21 14:54:58 +08:00
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[tox:jenkins]
|
|
|
|
sitepackages = True
|
|
|
|
|
2016-04-18 10:52:10 +08:00
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
|
|
|
[testenv:debug-py27]
|
|
|
|
basepython = python2.7
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
|
|
|
[testenv:debug-py34]
|
|
|
|
basepython = python3.4
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[testenv:pep8]
|
|
|
|
commands =
|
|
|
|
flake8
|
2014-06-26 17:50:34 +09:00
|
|
|
tacker-db-manage check_migration
|
2016-01-31 22:08:04 +01:00
|
|
|
bash -c "find tacker -type f -regex '.*\.pot?' -print0|xargs -0 --no-run-if-empty -n 1 msgfmt --check-format -o /dev/null"
|
2014-07-01 17:11:09 +09:00
|
|
|
whitelist_externals = bash
|
|
|
|
|
|
|
|
[testenv:i18n]
|
2014-06-26 17:50:34 +09:00
|
|
|
commands = python ./tools/check_i18n.py ./tacker ./tools/i18n_cfg.py
|
2014-07-01 17:11:09 +09:00
|
|
|
|
2015-10-15 02:47:33 +00:00
|
|
|
[testenv:docs]
|
|
|
|
commands =
|
|
|
|
doc8 -e .rst doc/source/ CONTRIBUTING.rst HACKING.rst README.rst TESTING.rst
|
|
|
|
python setup.py build_sphinx
|
|
|
|
|
2016-05-31 20:14:00 -05:00
|
|
|
[testenv:releasenotes]
|
|
|
|
commands =
|
|
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
|
|
|
|
|
2014-07-01 17:11:09 +09:00
|
|
|
[testenv:cover]
|
2016-04-20 17:36:35 +00:00
|
|
|
# Also do not run test_coverage_ext tests while gathering coverage as those
|
|
|
|
# tests conflict with coverage.
|
|
|
|
# NOTE(sdague): this target does not use constraints because
|
|
|
|
# upstream infra does not yet support it. Once that's fixed, we can
|
|
|
|
# drop the install_command.
|
|
|
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
2014-07-01 17:11:09 +09:00
|
|
|
commands =
|
2016-04-20 17:36:35 +00:00
|
|
|
coverage erase
|
|
|
|
python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
coverage combine
|
|
|
|
coverage html --include='tacker/*' -d covhtml -i
|
2014-07-01 17:11:09 +09:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E128 continuation line under-indented for visual indent
|
2016-01-27 21:09:42 +01:00
|
|
|
ignore = E128
|
2014-07-01 17:11:09 +09:00
|
|
|
show-source = true
|
|
|
|
builtins = _
|
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject
|
|
|
|
|
|
|
|
[hacking]
|
2015-06-11 17:17:38 -07:00
|
|
|
import_exceptions = tacker.i18n
|
2014-06-26 17:50:34 +09:00
|
|
|
local-check-factory = tacker.hacking.checks.factory
|