Files
nova-specs/tox.ini
Sean Dague 2b2a322e1c remove stale pyc before tests
Stale pyc files can create massive confusion on failing
tests. Extremely hard to debug. Remove all pyc files before we run
tests.

Change-Id: I67da587382af87389c2d04c23d84f13f341a1e46
Related-Bug: #1401600
2015-03-31 13:39:23 +00:00

25 lines
593 B
INI

[tox]
# Hold back to 1.4, since that's what's in Fedora 20 repos
# and we don't need anything newer for nova-specs tests
minversion = 1.4
envlist = docs,py27
skipsdist = True
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands =
find . -type f -name "*.pyc" -delete
python setup.py build_sphinx