api-site/tox.ini
Andreas Jaeger 8ff5b8e56f Publish api-ref-guides PDF files
This depends on openstack-doc-tools 0.10.

Change-Id: I25da2a5819d51d46e7dbe6685370ea93bd8dc681
2014-03-28 16:35:14 +01:00

38 lines
1.1 KiB
INI

[tox]
minversion = 1.6
envlist = checkniceness,checksyntax,checkdeletions,checkbuild
skipsdist = True
[testenv]
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --check-niceness {posargs}
[testenv:checksyntax]
commands = openstack-doc-test --check-syntax {posargs}
[testenv:checkdeletions]
commands = openstack-doc-test --check-deletions {posargs}
[testenv:checkbuild]
commands = openstack-doc-test --check-build {posargs}
[testenv:publishdocs]
# Prepare documents (without www) so that they can get published on
# docs.openstack.org with just copying publish-docs/* over.
commands = openstack-doc-test --check-build --nocreate-index --only-book api-quick-start
[testenv:publishdocs-api]
# Prepare documents (without www) so that they can get published on
# api.openstack.org with just copying publish-docs/* over.
commands =
openstack-doc-test --check-build --nocreate-index --only-book api-ref --only-book api-ref-guides
# We need to move api-ref-guides to the proper place:
mv publish-docs/api-ref-guides publish-docs/api-ref/