From 71217e2004fb36874dd0e8d915d0d939f2b37eed Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sun, 9 Jul 2017 01:34:39 +0000 Subject: [PATCH] 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 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 59259d4..8d9475f 100644 --- a/tox.ini +++ b/tox.ini @@ -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