Files
python-barbicanclient/tox.ini
Steve Heyman 347d034d46 Update functionaltests to be able to run tox -e functional
Removed extra "nose" pre-req from tox.ini as it is already in
test-requirements.txt, and it causes a "double requirement"
error when running via tox.  Also fixed relative directory
reference to ensure we pick up the right etc/functional_tests.conf
file.

Change-Id: Iffb2891012ff0a4bb13a34bd7f8784104453b150
2015-02-27 22:56:53 -06:00

45 lines
1.0 KiB
INI

[tox]
minversion = 1.6
envlist = py34,py26,py27,pypy,pep8
skipsdist = True
[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 --coverage --testr-args='{posargs}'
coverage combine
coverage report -m
[testenv:debug]
commands = oslo_debug_helper -t barbicanclient {posargs}
[testenv:pep8]
commands = {toxinidir}/tools/hacking.sh {posargs}
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:functional]
# This tox env is purely to make local test development easier
# Note: This requires local running instances of Barbican
deps =
{[testenv]deps}
git+https://github.com/openstack/tempest.git
commands = nosetests {toxinidir}/functionaltests --match='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
show-source = True
ignore = F,H
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build