2 # jenkins build helper script for osmocom-bb. This is how we build on jenkins.osmocom.org
4 # environment variables:
5 # * WITH_MANUALS: build manual PDFs if set to "1"
6 # * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
16 osmo-clean-workspace.sh
20 osmo-build-dep.sh libosmocore
"" ac_cv_path_DOXYGEN
=false
22 # TODO: ask whether fail is expected, because osmocom-bb build succeeds?
23 #"$deps"/libosmocore/contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
25 export PKG_CONFIG_PATH
="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
26 export LD_LIBRARY_PATH
="$inst/lib"
32 echo " =============================== OsmocomBB ==============================="
37 # building those sub-projects where 'distcheck' is known-working
38 for dir
in gprsdecode layer23
; do
39 cd $base/src
/host
/$dir
45 # TODO: make sure 'distcheck' passes also for these
46 for dir
in gsmmap osmocon trxcon virt_phy
; do
47 cd $base/src
/host
/$dir
53 # Build and publish manuals
54 if [ "$WITH_MANUALS" = "1" ]; then
55 osmo-build-dep.sh osmo-gsm-manuals
56 make -C "$base/doc/manuals"
57 make -C "$base/doc/manuals" check
59 if [ "$PUBLISH" = "1" ]; then
60 make -C "$base/doc/manuals" publish
64 # Test 'maintainer-clean'
65 for dir
in gprsdecode layer23 gsmmap osmocon trxcon virt_phy
; do
66 cd "$base/src/host/$dir"
70 osmo-clean-workspace.sh