Browse Source

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
Akihiro Motoki 1 year ago
parent
commit
71217e2004
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tox.ini

+ 2
- 2
tox.ini View File

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

Loading…
Cancel
Save