Use doc8 properly for testing in the gate

The gate calls build_sphinx explicitly without using tox and calls
tox -e py27. Add the doc8 tests to the default testenv so that it gets
really run.

Change-Id: I8310bb70d4b91ddcf45ecc0905c32e9b57ac69b2
This commit is contained in:
Andreas Jaeger 2014-11-09 13:59:11 +01:00 committed by Andreas Jaeger
parent bbaeb5e1fd
commit 6f8d3a3377
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
# The gate jobs run build_sphinx without using tox (thus ignore the
# docs target) and also call "tox -e py27", thus add doc8 here as
# default job.
commands = doc8 -e .rst specs/ doc/ README.rst
[testenv:venv]
commands = {posargs}