nodepool/tox.ini
Clark Boylan a93bb48cf5 Fix tox's insane pip install command.
Override tox's pip install command so that prereleases (alphas, betas,
broken things) aren't installed by default. Instead only install release
versions unless a prerelease version is specifically provided. Do this
by overriding the tox install command value.

This fixes doc builds that use `tox -evenv python setup.py
build_sphinx`.

Also, remove the gearman servers from the test configuration (since there
is not yet any support for it).

Change-Id: I31913420adcb48866d3996f2dd3b605c55acce2e
2014-04-01 11:27:58 -07:00

32 lines
667 B
INI

[tox]
envlist = pep8, py27
[testenv]
# Set STATSD env variables so that statsd code paths are tested.
setenv = STATSD_HOST=localhost
STATSD_PORT=8125
VIRTUAL_ENV={envdir}
install_command = pip install {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 nodepool
[testenv:cover]
commands =
python setup.py testr --coverage
[testenv:venv]
commands = {posargs}
[flake8]
ignore = E123,E125,H
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg