add contrib/jenkins.sh for build verification

Change-Id: I7ba3a711c3291ca3d61c8064e3e94ab2ae7563e3
This commit is contained in:
Harald Welte 2019-01-13 13:40:15 +01:00
parent 8476b94ab0
commit 9079bc8bcd
1 changed files with 17 additions and 0 deletions

17
contrib/jenkins.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
set -ex
if [ -z "$MAKE" ]; then
set +x
echo "Error: you need to set \$MAKE before invoking, e.g. MAKE=make"
exit 1
fi
osmo-clean-workspace.sh
verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
cd gcc && $MAKE $PARALLEL_MAKE
osmo-clean-workspace.sh