
As of the tox 2.5.0 release, failure to specify a default commands key in the fallback testenv section of tox.ini instantly fails with "ERROR: Commands not specified. Please update relevant section of .../tox.ini". Copy the testenv.commands entry from the openstack/cookiecutter repo's template. While at it, copy the boilerplate placeholder test from the cookiecutter templates so that jobs don't freak out when they discover (and then run) no tests. Change-Id: Ifb8fcfbb6d76edd8c7dcf814a705ee7eff3a9819
28 lines
531 B
INI
28 lines
531 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipdist = True
|
|
envlist = pep8, py27, pypy, py33, py34
|
|
|
|
[testenv]
|
|
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|