blob: f26faa867d1f5091acc61e9d37f4591b7daade64 [file] [log] [blame]
Max1ac277d2018-01-18 19:15:40 +01001#!/bin/sh
2# jenkins build helper script for libosmocore. This is how we build on jenkins.osmocom.org
3
4. $(dirname "$0")/jenkins_common.sh
5
Max1ac277d2018-01-18 19:15:40 +01006src_dir="$PWD"
7build() {
8 build_dir="$1"
9
10 prep_build "$src_dir" "$build_dir"
11
Vadim Yanitskiy381dc612022-03-13 17:32:29 +030012 "$src_dir"/configure --disable-silent-rules --enable-static --enable-sanitize --enable-werror \
Neels Hofmeyrd79f01e2018-09-12 02:53:54 +020013 --enable-external-tests
Maxe41ad4d2018-01-18 17:37:18 +010014
15 run_make
Max1ac277d2018-01-18 19:15:40 +010016}
17
18# verify build in dir other than source tree
19build builddir
20# verify build in source tree
21build .
22
23# do distcheck only once, which is fine from built source tree, since distcheck
24# is well separated from the source tree state.
Neels Hofmeyr4ff41d92019-01-28 19:11:05 +010025DISTCHECK_CONFIGURE_FLAGS=--enable-external-tests \
Pau Espin Pedrol3c5fa2d2020-10-12 17:40:00 +020026 $MAKE $PARALLEL_MAKE distcheck \
Max1ac277d2018-01-18 19:15:40 +010027 || cat-testlogs.sh
Oliver Smitha3dec042019-07-10 12:01:50 +020028$MAKE maintainer-clean
Max1ac277d2018-01-18 19:15:40 +010029
30osmo-clean-workspace.sh