jenkins.sh: Use --disable-doxygen configure param
[osmocom-bb.git] / contrib / jenkins.sh
blobcd36e2faf5de8e6a97021756cabb8f53d0e854f9
1 #!/bin/sh
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")
9 set -ex
11 base="$PWD"
12 deps="$base/deps"
13 inst="$deps/install"
14 export deps inst
16 osmo-clean-workspace.sh
18 mkdir "$deps" || true
20 # exclude ancient local copy of libosmocore.git
21 verify_value_string_arrays_are_terminated.py \
22 $(find . -path ./src/shared/libosmocore -prune -o -name '*.[hc]' -print)
24 export PKG_CONFIG_PATH="$inst/lib/pkgconfig:$PKG_CONFIG_PATH"
25 export LD_LIBRARY_PATH="$inst/lib"
27 osmo-build-dep.sh libosmocore "" --disable-doxygen
28 osmo-build-dep.sh libosmo-gprs
29 osmo-build-dep.sh gapk
31 set +x
32 echo
33 echo
34 echo
35 echo " =============================== OsmocomBB ==============================="
36 echo
37 set -x
40 # building those sub-projects where 'distcheck' is known-working
41 for dir in gprsdecode layer23 trxcon virt_phy; do
42 cd $base/src/host/$dir
43 autoreconf -fi
44 ./configure --enable-werror
45 $MAKE $PARALLEL_MAKE
46 DISTCHECK_CONFIGURE_FLAGS="--enable-werror" $MAKE $PARALLEL_MAKE distcheck
47 done
49 # TODO: make sure 'distcheck' passes also for these
50 # TODO: make sure '--enable-werror' passes also for these
51 for dir in osmocon; do
52 cd $base/src/host/$dir
53 autoreconf -fi
54 ./configure
55 $MAKE $PARALLEL_MAKE
56 done
58 # Build and publish manuals
59 if [ "$WITH_MANUALS" = "1" ]; then
60 make -C "$base/doc/manuals"
61 make -C "$base/doc/manuals" check
63 if [ "$PUBLISH" = "1" ]; then
64 make -C "$base/doc/manuals" publish
68 # Test 'maintainer-clean'
69 for dir in gprsdecode layer23 osmocon trxcon virt_phy; do
70 cd "$base/src/host/$dir"
71 make maintainer-clean
72 done
74 # Build the firmware (against the local copy of libosmocore)
75 cd "$base/src"
76 make firmware
78 # TRX Toolkit unit tests
79 cd "$base/src/target/trx_toolkit"
80 python3 -m unittest discover -v
82 osmo-clean-workspace.sh