
Add a command and tox environment to let us define a job to ensure that all repos in projects.txt have the check-requirements job defined. Two projects are missing the job now, so this patch depends on the patch to add those jobs. Change-Id: I61658a7265a77e72401978dda558f41b28a81d92 Depends-On: I81e1c70257e28583e776171580d75341e620bf8d Signed-off-by: Doug Hellmann <doug@doughellmann.com>
44 lines
1.0 KiB
INI
44 lines
1.0 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = validate,py27,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:update]
|
|
commands = update-requirements {posargs}
|
|
|
|
[testenv:generate]
|
|
commands = generate-constraints {posargs}
|
|
|
|
[testenv:validate]
|
|
commands = validate-constraints {toxinidir}/global-requirements.txt {toxinidir}/upper-constraints.txt {toxinidir}/blacklist.txt
|
|
|
|
[testenv:validate-projects]
|
|
commands = validate-projects {toxinidir}/projects.txt
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:babel]
|
|
# Use the local upper-constraints.txt file
|
|
deps = Babel
|
|
install_command = pip install -c upper-constraints.txt {opts} {packages}
|
|
commands = {toxinidir}/tools/babel-test.sh
|
|
|
|
[flake8]
|
|
ignore = H803
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|