keystone/tox.ini
Lance Bragstad 491b29bed8 Make gen_pki.sh & debug_helper.sh bash8 compliant
Now that bash8 is available on PyPI we can use it to clean up the bash
scripts in Keystone. This also uses bash8 in tox. For now we can add
files to the tox check manually as we make them compliant.

Change-Id: I87a7478949114163f0614b1a6d8b249e14afe0df
2014-06-23 15:41:58 +00:00

85 lines
2.3 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py26,py27,py33,pep8,docs,sample_config
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = bash
[testenv:py33]
deps = -r{toxinidir}/requirements-py3.txt
-r{toxinidir}/test-requirements-py3.txt
nose
commands =
nosetests \
keystone/tests/test_cache_backend_mongo.py \
keystone/tests/test_contrib_stats_core.py \
keystone/tests/test_driver_hints.py \
keystone/tests/test_injection.py \
keystone/tests/test_policy.py \
keystone/tests/test_s3_token_middleware.py \
keystone/tests/test_singular_plural.py \
keystone/tests/test_sizelimit.py \
keystone/tests/test_token_bind.py \
keystone/tests/unit
[testenv:pep8]
envdir = {toxworkdir}/venv
commands =
flake8 {posargs}
# Check that .po and .pot files are valid.
# NOTE(jaegerandi): We search for files ending with '.po' or '.pot'.
# The regex '.*\.pot?' does not work on OS X and we assume there are no
# files with more than one "t" that have to be ignored.
bash -c "find keystone -type f -regex '.*\.pot*' -print0| \
xargs -0 -n 1 msgfmt --check-format -o /dev/null"
[testenv:bash8]
envdir = {toxworkdir}/venv
commands =
bash8 examples/pki/gen_pki.sh tools/debug_helper.sh
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands =
{toxinidir}/tools/debug_helper.sh {posargs}
[flake8]
filename= *.py,keystone-*
show-source = true
# H803 Commit message should not end with a period (do not remove per list discussion)
ignore = H803
builtins = _
exclude=.venv,.git,.tox,build,dist,doc,*openstack/common*,*lib/python*,*egg,tools,vendor,.update-venv,*.ini
[testenv:docs]
envdir = {toxworkdir}/venv
commands=
python setup.py build_sphinx
[testenv:sample_config]
envdir = {toxworkdir}/venv
commands = {toxinidir}/tools/config/generate_sample.sh
[hacking]
import_exceptions = keystone.openstack.common.gettextutils._
local-check-factory = keystone.hacking.checks.factory