osmith has uploaded this change for review. ( https://gerrit.osmocom.org/12064


Change subject: contrib/jenkins.sh: build and publish manuals
......................................................................

contrib/jenkins.sh: build and publish manuals

Install osmo-gsm-manuals like any other dependency. Add the bin subdir
of the installed files to PATH, so osmo-gsm-manuals-check-depends can
be used by ./configure --enable-manuals.

Add optional --publish parameter to contrib/jenkins.sh to be used by
the master-builds jenkins job. It will automatically upload the newly
generated PDFs when commits land in master.

Related: OS#3385
Change-Id: I5904c86c7e38d36d23df213f5a2ae1986647a051
---
M contrib/jenkins.sh
1 file changed, 11 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/64/12064/1

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index a417a9e..52430d2 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -9,6 +9,10 @@

 set -ex

+# gerrit-verifications.yml: leaves this empty
+# master-builds.yml: sets this to "--publish"
+publish="$1"
+
 base="$PWD"
 deps="$base/deps"
 inst="$deps/install"
@@ -22,10 +26,12 @@

 export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
 export LD_LIBRARY_PATH="$inst/lib"
+export PATH="$inst/bin:$PATH"

 osmo-build-dep.sh libosmocore "" --disable-doxygen
 osmo-build-dep.sh libosmo-abis
 osmo-build-dep.sh libosmo-netif
+osmo-build-dep.sh osmo-gsm-manuals

 set +x
 echo
@@ -36,10 +42,14 @@
 set -x

 autoreconf --install --force
-./configure --enable-sanitize --enable-werror --enable-external-tests
+./configure --enable-sanitize --enable-werror --enable-external-tests 
--enable-manuals
 $MAKE $PARALLEL_MAKE
 DISTCHECK_CONFIGURE_FLAGS="--enable-external-tests" \
   $MAKE distcheck \
   || cat-testlogs.sh

+if [ "$publish" = "--publish" ]; then
+       make -C "$base/doc/manuals" publish
+fi
+
 osmo-clean-workspace.sh

--
To view, visit https://gerrit.osmocom.org/12064
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5904c86c7e38d36d23df213f5a2ae1986647a051
Gerrit-Change-Number: 12064
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to