Updates training labs jobs

Adds a script for building windows scripts and creating tar/zip files
for the labs section.

Change-Id: I8a1fd7a9600aa85f6ecd67802d272755bd0ba9e5
This commit is contained in:
Pranav Salunke
2015-02-02 14:36:48 +01:00
committed by Roger Luethi
parent 139008586b
commit 269efda7e8
2 changed files with 14 additions and 6 deletions

10
tools/generatelabs Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Used by tox.ini when checking build and publishing docs to website
# Create tarball of labs scripts for Linux/OS X users
bash -c "tar czf publish-docs/trunk/training-guides/labs-scripts.tgz labs"
# Generate Windows batch scripts
bash -c "labs/osbash.sh -w cluster"
# Create zip file of labs scripts for Windows users
bash -c "zip -r publish-docs/trunk/training-guides/labs-scripts.zip labs"

10
tox.ini
View File

@@ -37,9 +37,8 @@ commands = openstack-doc-test --check-deletions {posargs}
commands = commands =
mkdir -p publish-docs/trunk/training-guides mkdir -p publish-docs/trunk/training-guides
openstack-doc-test --check-build {posargs} openstack-doc-test --check-build {posargs}
bash -c "tar czf publish-docs/trunk/training-guides/labs-scripts.tgz labs" # Build labs scripts
bash -c "labs/osbash.sh -w cluster" bash {toxinidir}/tools/generatelabs
bash -c "zip -r publish-docs/trunk/training-guides/labs-scripts.zip labs"
[testenv:publishdocs] [testenv:publishdocs]
# Prepare all documents (except www subdir) so that they can get # Prepare all documents (except www subdir) so that they can get
@@ -51,9 +50,8 @@ commands =
mkdir -p publish-docs/trunk/training-guides mkdir -p publish-docs/trunk/training-guides
# We only publish changed manuals. # We only publish changed manuals.
openstack-doc-test --check-build --publish openstack-doc-test --check-build --publish
bash -c "tar czf publish-docs/trunk/training-guides/labs-scripts.tgz labs" # Build and publish training labs scripts
bash -c "labs/osbash.sh -w cluster" bash {toxinidir}/tools/generatelabs
bash -c "zip -r publish-docs/trunk/training-guides/labs-scripts.zip labs"
[testenv:checklang] [testenv:checklang]
# Generatedocbook needs xml2po which cannot be installed # Generatedocbook needs xml2po which cannot be installed