contrib/jenkins.sh: build and publish manuals
Add new environment variables WITH_MANUALS and PUBLISH to control if the manuals should be built and uploaded. Describe all environment vars on top of the file. Related: OS#3385 Change-Id: I856e4bc71e1b648de5f27d4044aa60bd0b45e0f5
This commit is contained in:
parent
810b696b8d
commit
60e402d13a
|
@ -1,4 +1,10 @@
|
|||
#!/bin/sh
|
||||
# jenkins build helper script for osmocom-bb. This is how we build on jenkins.osmocom.org
|
||||
#
|
||||
# environment variables:
|
||||
# * WITH_MANUALS: build manual PDFs if set to "1"
|
||||
# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
|
||||
#
|
||||
|
||||
set -ex
|
||||
|
||||
|
@ -35,4 +41,15 @@ for dir in gprsdecode gsmmap layer23 osmocon trxcon virt_phy; do
|
|||
make
|
||||
done
|
||||
|
||||
# Build and publish manuals
|
||||
if [ "$WITH_MANUALS" = "1" ]; then
|
||||
osmo-build-dep.sh osmo-gsm-manuals
|
||||
make -C "$base/doc/manuals"
|
||||
make -C "$base/doc/manuals" check
|
||||
|
||||
if [ "$PUBLISH" = "1" ]; then
|
||||
make -C "$base/doc/manuals" publish
|
||||
fi
|
||||
fi
|
||||
|
||||
osmo-clean-workspace.sh
|
||||
|
|
Loading…
Reference in New Issue