From 0eba20cd5cb20cf2042bb4e1da72d7cecc1688db Mon Sep 17 00:00:00 2001 From: Min Pae Date: Mon, 11 Jan 2016 13:41:32 -0800 Subject: [PATCH] adding a tox environment for docs Change-Id: If34f4729853b9bb0b75f28b9d0262b30d8ab8d24 --- test-requirements.txt | 1 + tox.ini | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/test-requirements.txt b/test-requirements.txt index d1a9c24e..4b27e2fe 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,6 +11,7 @@ oslotest>=1.10.0 # Apache-2.0 python-subunit>=0.0.18 # Apache-2.0/BSD testrepository>=0.0.18 # Apache-2.0/BSD testtools>=1.4.0 # MIT +doc8 # Apache-2.0 # Doc requirements sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD diff --git a/tox.ini b/tox.ini index 4f136d02..c35ce63a 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,10 @@ commands = oslo_debug_helper {posargs} basepython = python3.4 commands = oslo_debug_helper {posargs} +[testenv:docs] +commands = python setup.py build_sphinx + doc8 doc/source + [testenv:pep8] commands = flake8 {posargs}