Improve doctest and doc8 test

doctest and doc8 requires that ChangeLog file exists.
To deal with this, doctest is invoked via 'python setup.py build_sphinx'
as python setup.py generates ChangeLog file via pbr.
As a result, doc8 --ignore-path is no longer needed.

Change-Id: I0fbd9c5187266c1f52627dcce072015c01af644f
This commit is contained in:
Akihiro Motoki 2017-07-09 01:34:39 +00:00
parent 8629b628cb
commit 71217e2004
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:py27]
commands =
python setup.py testr --slowest --testr-args='{posargs}'
sphinx-build -b doctest doc/source doc/build
doc8 --ignore-path "doc/source/user/history.rst" doc/source
python setup.py build_sphinx -b doctest
doc8 doc/source
[testenv:docs]
commands = python setup.py build_sphinx