Setup for openstack-doc-tools

Setup repository so that we can gate using the openstack-doc-tools
tools. Update documentation with details.

Change-Id: I8c0dd9131d45f1711d2b1c1916b2c668c6827e1a
This commit is contained in:
Andreas Jaeger 2014-01-08 22:22:25 +01:00
parent 26b0dae674
commit a0194a51d8
4 changed files with 56 additions and 0 deletions

8
.gitignore vendored
View File

@ -3,3 +3,11 @@ target/
# NetBeans user-specific build actions
nbactions.xml
# Testenvironment
.tox/
# Editors
*~
.*.swp
.bak

View File

@ -42,6 +42,25 @@ The root of the generated HTML documentation is::
v2.0/target/docbkx/webhelp/openstack-network/index.html
Testing of changes and building of the manual
=============================================
Install the python tox package and run ``tox`` from the top-level
directory to use the same tests that are done as part of our Jenkins
gating jobs.
If you like to run individual tests, run:
* ``tox -e checkniceness`` - to run the niceness tests
* ``tox -e checksyntax`` - to run syntax checks
* ``tox -e checkdeletions`` - to check that no deleted files are referenced
* ``tox -e checkbuild`` - to actually build the manual
tox will use the `openstack-doc-tools package
<https://github.com/openstack/openstack-doc-tools>`_ for execution of
these tests. openstack-doc-tools has a requirement on maven for the
build check.
Installing
==========
Refer to http://docs.openstack.org to see where these documents are published

1
test-requirements.txt Normal file
View File

@ -0,0 +1 @@
openstack-doc-tools

28
tox.ini Normal file
View File

@ -0,0 +1,28 @@
[tox]
minversion = 1.6
envlist = checkniceness,checksyntax,checkdeletions,checkbuild
skipsdist = True
[testenv]
setenv =
VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --api-site --check-niceness {posargs}
[testenv:checksyntax]
commands = openstack-doc-test --api-site --check-syntax {posargs}
[testenv:checkdeletions]
commands = openstack-doc-test --api-site --check-deletions {posargs}
[testenv:checkbuild]
# ignore directory v1.0, it is not published
commands = openstack-doc-test --api-site --ignore-dir=v1.0 --check-build {posargs}