Michael Davies 0bb42e908b Add in support for a tox pypy target
Since our gate has a gate-python-ironicclient-pypy job,
we should support it in our local test environments.

Change-Id: I825a1206e2c653981ceb2cd2ffe65033bc78a6c4
2015-04-29 13:26:49 +09:30

44 lines
962 B
INI

[tox]
minversion = 1.6
envlist = py26,py27,py33,py34,pep8,pypy
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
install_command = pip install -U {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
flake8 {posargs}
{toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
commands =
python setup.py testr --coverage {posargs}
[testenv:venv]
commands = {posargs}
[testenv:functional]
setenv = OS_TEST_PATH=./ironicclient/tests/functional
LANGUAGE=en_US
[flake8]
ignore =
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
[hacking]
import_exceptions = testtools.matchers