aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/jenkins_bts_model.sh12
-rw-r--r--contrib/jenkins_common.sh13
2 files changed, 23 insertions, 2 deletions
diff --git a/contrib/jenkins_bts_model.sh b/contrib/jenkins_bts_model.sh
index 9aa943fa..ac85c305 100755
--- a/contrib/jenkins_bts_model.sh
+++ b/contrib/jenkins_bts_model.sh
@@ -1,6 +1,14 @@
#!/bin/sh
-# this is a dispatcher script which will call the bts-model-specific
-# script based on the bts model specified as command line argument
+# jenkins build helper script for osmo-bts. This is how we build on jenkins.osmocom.org
+#
+# environment variables:
+# * FIRMWARE_VERSION: which firmware version to build ("master", "femtobts_v2.7", ...)
+# * WITH_MANUALS: build manual PDFs if set to "1"
+# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
+#
+# usage: jenkins_bts_model.sh BTS_MODEL
+# * BTS_MODEL: which BTS model specific script to run ("sysmo", "oct", ...)
+#
bts_model="$1"
diff --git a/contrib/jenkins_common.sh b/contrib/jenkins_common.sh
index bdb12d55..fd0359bf 100644
--- a/contrib/jenkins_common.sh
+++ b/contrib/jenkins_common.sh
@@ -38,10 +38,23 @@ build_bts() {
osmo-deps.sh libosmocore
cd $base
shift
+
+ # Manuals: build
conf_flags="$*"
+ if [ "$WITH_MANUALS" = "1" ]; then
+ conf_flags="$conf_flags --enable-manuals"
+ osmo-build-dep.sh osmo-gsm-manuals
+ export PATH="$inst/bin:$PATH"
+ fi
+
autoreconf --install --force
./configure $conf_flags
$MAKE $PARALLEL_MAKE
$MAKE check || cat-testlogs.sh
DISTCHECK_CONFIGURE_FLAGS="$conf_flags" $MAKE distcheck || cat-testlogs.sh
+
+ # Manuals: publish
+ if [ "$WITH_MANUALS" = "1" ] && [ "$PUBLISH" = "1" ]; then
+ $MAKE -C "$base/doc/manuals" publish
+ fi
}