diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 0965bf5..24bfdc1 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -1,5 +1,10 @@ #!/bin/sh +if ! [ -x "$(command -v osmo-deps.sh)" ]; then + echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !" + exit 2 +fi + set -ex if [ -z "$MAKE" ]; then @@ -8,10 +13,37 @@ if [ -z "$MAKE" ]; then exit 1 fi +TOPDIR=`pwd` + +publish="$1" + osmo-clean-workspace.sh verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") -cd gcc && $MAKE $PARALLEL_MAKE +cd gcc +$MAKE mrproper +$MAKE $PARALLEL_MAKE +$MAKE $PARALLEL_MAKE BOARD=SYSMOOCTSIM + +if [ "x$publish" = "x--publish" ]; then + echo + echo "=============== UPLOAD BUILD ==============" + + cat > "/build/known_hosts" <