pegleg/tox.ini
Felipe Monteiro f4e0164466 Add top-level lint/fmt tox jobs
This is to add a top-level lint/fmt job to Pegleg so that tox -e lint
is executed in CICD. lint is included under envlist to accomplish this.
fmt is excluded from envlist as it doesn't need to be executed in CICD
but is included nonetheless for convenience.

Also fixes some typos.

Change-Id: I76165704b32653c98e506ddde71c8240d5f28492
2018-04-30 14:34:14 +00:00

34 lines
775 B
INI

[tox]
envlist = py35, lint, docs
# Allows docs to be built without setup.py having to exist. Requires that
# usedevelop be False as well (which it is by default).
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
[testenv:py35]
commands =
# Run all unit tests under src/bin/pegleg
tox -c src/bin/pegleg/tox.ini -e py35
whitelist_externals = tox
[testenv:fmt]
commands =
tox -c src/bin/pegleg/tox.ini -e fmt
whitelist_externals = tox
[testenv:lint]
commands =
tox -c src/bin/pegleg/tox.ini -e lint
whitelist_externals = tox
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands =
rm -rf doc/build
sphinx-build -b html docs/source docs/build -n -W -v
whitelist_externals = rm