oslo-incubator/tox.ini
Ilya Pekelny a526f4079e Have tox install via setup.py develop
tox 1.6 was released, which means that we can now take advantage of the
feature we added to it - which is using setup.py develop to install the
code into the virtualenv. The logic was taken from run_tests.sh - so the
performance issues around using tox vs. using install_venv should now be
gone.

Ported from Nova: 32d63a9fbe6f353ca1af8922d6bcbb012a2cc32c
Change-Id: If83a5b5473344d3a0e3a3a9fbb4ba16fa75f5be3
2013-11-19 14:37:49 +02:00

41 lines
973 B
INI

[tox]
minversion = 1.6
envlist = py26,py27,py33,pep8,pylint
skipsdist = True
[testenv]
sitepackages = False
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
# due to dependencies between tests (bug 1192207) we use `--concurrency=1` option
python setup.py test --slowest --testr-args='--concurrency=1 {posargs}'
{toxinidir}/tools/config/generate_sample.sh -p openstack
[flake8]
show-source = True
ignore = H803
exclude = .venv,.tox,dist,doc,*.egg,.update-venv
[testenv:pep8]
commands = flake8 {posargs}
[testenv:pylint]
deps = pylint>=0.26.0
commands = python ./tools/lint.py ./openstack
python ./tools/lint.py ./tests
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py test --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:pyflakes]
commands = flake8