From b7427dea858de75fd5f272c9f9cff51a8054e52e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 15 Apr 2014 15:29:42 +0200 Subject: [PATCH] Publish additionally to Icehouse This publishes config reference and install guides to both /trunk and /icehouse. Change-Id: I26f75c67fe416f49dcbeb48a2e91d2df9cd121cd --- tox.ini | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 0a172d2df2..03e833a9f1 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,11 @@ skipsdist = True setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt -whitelist_externals = bash +whitelist_externals = + bash + cp + mkdir + sed [testenv:venv] commands = {posargs} @@ -31,7 +35,15 @@ commands = openstack-doc-test --check-build {posargs} # Prepare all documents (except www subdir) so that they can get # published on docs.openstack.org with just copying publish-docs/* # over. -commands = openstack-doc-test --check-build --nocreate-index --force +commands = + openstack-doc-test --check-build --nocreate-index --force + # Publish install-guide and config-reference to /icehouse + # TODO(jaegerandi): Remove these lines before we branch off an + # icehouse branch. + cp -a publish-docs/trunk publish-docs/icehouse + # Replace links to /trunk with links to /icehouse/ + # This needs bash so that tox does not interpret the * + bash -c "sed -i -e 's|/trunk/|/icehouse/|g' publish-docs/icehouse/*/atom.xml publish-docs/icehouse/*/*/*/atom.xml publish-docs/icehouse/*/*.html publish-docs/icehouse/*/*/*/*/*.html publish-docs/icehouse/*/*/*/*.html publish-docs/icehouse/*/*/*.html publish-docs/icehouse/*/*.html" [testenv:buildlang-install] # Run as "tox -e buildlang-install -- $LANG"