Files
openstacksdk/tox.ini
Brian Curtin f956917c0d Add tox targets for functional testing on 2 and 3
Previously, the functional tests would run using the `python` in your
environment, which was 3 for myself and 2 for most others. We should
really be testing on both versions as we do for unit tests. A change to
the gate will follow this.

Change-Id: I2bd2664018c135593a96fd6ba5741279da772e76
Closes-Bug: 1489935
2015-08-28 14:16:05 -05:00

45 lines
1.0 KiB
INI

[tox]
minversion = 1.6
envlist = py34,py27,pypy,pep8
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
[functionalbase]
setenv = OS_TEST_PATH=./openstack/tests/functional
passenv = OS_*
[testenv:functional]
basepython = python2.7
setenv = {[functionalbase]setenv}
passenv = {[functionalbase]passenv}
[testenv:functional3]
basepython = python3.4
setenv = {[functionalbase]setenv}
passenv = {[functionalbase]passenv}
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
; If this fails for you, you may be running an old version of tox.
; Run 'pip install tox' to install a newer version of tox.
[testenv:cover]
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
show-source = True
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build