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:
parent
139008586b
commit
269efda7e8
10
tools/generatelabs
Executable file
10
tools/generatelabs
Executable 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
10
tox.ini
@ -37,9 +37,8 @@ commands = openstack-doc-test --check-deletions {posargs}
|
||||
commands =
|
||||
mkdir -p publish-docs/trunk/training-guides
|
||||
openstack-doc-test --check-build {posargs}
|
||||
bash -c "tar czf publish-docs/trunk/training-guides/labs-scripts.tgz labs"
|
||||
bash -c "labs/osbash.sh -w cluster"
|
||||
bash -c "zip -r publish-docs/trunk/training-guides/labs-scripts.zip labs"
|
||||
# Build labs scripts
|
||||
bash {toxinidir}/tools/generatelabs
|
||||
|
||||
[testenv:publishdocs]
|
||||
# Prepare all documents (except www subdir) so that they can get
|
||||
@ -51,9 +50,8 @@ commands =
|
||||
mkdir -p publish-docs/trunk/training-guides
|
||||
# We only publish changed manuals.
|
||||
openstack-doc-test --check-build --publish
|
||||
bash -c "tar czf publish-docs/trunk/training-guides/labs-scripts.tgz labs"
|
||||
bash -c "labs/osbash.sh -w cluster"
|
||||
bash -c "zip -r publish-docs/trunk/training-guides/labs-scripts.zip labs"
|
||||
# Build and publish training labs scripts
|
||||
bash {toxinidir}/tools/generatelabs
|
||||
|
||||
[testenv:checklang]
|
||||
# Generatedocbook needs xml2po which cannot be installed
|
||||
|
Loading…
x
Reference in New Issue
Block a user