
This patchset renames the tox.ini jobs:
* lint => pep8
to comply with OpenStack standards [0]. This is needed so that [1]
works seamlessly (it will enable py35 and cover jobs for Pegleg).
[0] e.g. 04469a5181/tox.ini (L119)
[1] I174d5df008f6e000da1a3878afe75919312ea7aa
Change-Id: Ic3a5f2391e129cae32f60c0fb17197169df1b4c6
34 lines
775 B
INI
34 lines
775 B
INI
[tox]
|
|
envlist = py35, pep8, 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:pep8]
|
|
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
|