diff options
author | Max <msuraev@sysmocom.de> | 2018-01-18 19:15:40 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-01-18 19:17:45 +0100 |
commit | 1ac277dcef694a2f849a6b5259cf5aa4488bebb9 (patch) | |
tree | 2be9006dd753616d3e08cd29ef790513f80440a0 /contrib/jenkins_amd64.sh | |
parent | c4759885d7c2aedf310739d9a2420ae1d67a0338 (diff) |
jenkins: add dispatcher script
Similar to the way we test osmo-bts, add simple dispatcher script which
calls appropriate test depending on a given parameter. This will allow
to simplify the job description. While at it, also rename jenkins-arm.sh
-> jenkins_arm.sh to match the OsmoBTS.
The older scripts are preserved for compatibility and shall be removed
once we update job description in osmo-ci.
Change-Id: I2955e866bce4f000a53369bd601a346c36c82468
Diffstat (limited to 'contrib/jenkins_amd64.sh')
-rwxr-xr-x | contrib/jenkins_amd64.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/jenkins_amd64.sh b/contrib/jenkins_amd64.sh new file mode 100755 index 00000000..d336f0a0 --- /dev/null +++ b/contrib/jenkins_amd64.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# jenkins build helper script for libosmocore. This is how we build on jenkins.osmocom.org + +. $(dirname "$0")/jenkins_common.sh + +ENABLE_SANITIZE="--enable-sanitize" + +if [ "x$label" = "xFreeBSD_amd64" ]; then + ENABLE_SANITIZE="" +fi + +src_dir="$PWD" +build() { + build_dir="$1" + + prep_build "$src_dir" "$build_dir" + + "$src_dir"/configure --enable-static $ENABLE_SANITIZE CFLAGS="-Werror" CPPFLAGS="-Werror" + $MAKE V=1 $PARALLEL_MAKE check \ + || cat-testlogs.sh +} + +# verify build in dir other than source tree +build builddir +# verify build in source tree +build . + +# do distcheck only once, which is fine from built source tree, since distcheck +# is well separated from the source tree state. +$MAKE distcheck \ + || cat-testlogs.sh + +osmo-clean-workspace.sh |