f9d4e0e078
* Split out PDF building into a separate tox target * Run HTML builder the same way as by Infra * Omit Latex builder as it's not used Change-Id: Idae8ce297fdcc05141749d31f343cb29ce89ca66
44 lines
923 B
INI
44 lines
923 B
INI
[tox]
|
|
envlist = docs,py34,py27,pep8
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
# --ignore-installed is added to workaround problem with pip 8.0 and argparse
|
|
# https://github.com/pypa/pip/issues/3404 and
|
|
# https://github.com/pypa/pip/issues/3384
|
|
install_command = pip install --ignore-installed -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:pdf]
|
|
deps =
|
|
cairosvg
|
|
lxml
|
|
tinycss
|
|
cssselect
|
|
rst2pdf
|
|
whitelist_externals = bash
|
|
commands = bash tools/build_pdf.sh
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.venv*,.git,.tox,dist,doc,*lib/python*,*egg,build
|