a93bb48cf5
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
32 lines
667 B
INI
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
|