contrib/jenkins.sh: osmo-fl2k build verification

Related: OS#3203
Signed-off-by: Oliver Smith <osmith@sysmocom.de>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Oliver Smith 2019-07-24 10:57:39 +02:00 committed by Steve Markgraf
parent df33203db5
commit fb206158f9
1 changed files with 18 additions and 0 deletions

18
contrib/jenkins.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh -ex
# This is how we build on jenkins.osmocom.org.
CFLAGS="-Werror"
if ! [ -x "$(command -v osmo-clean-workspace.sh)" ]; then
echo "Error: We need to have scripts/osmo-clean-workspace.sh from osmo-ci.git in PATH!"
exit 2
fi
osmo-clean-workspace.sh
cmake \
-DINSTALL_UDEV_RULES=ON \
-DCMAKE_C_FLAGS="$CFLAGS" \
.
make $PARALLEL_MAKE
make DESTDIR="_install" install
osmo-clean-workspace.sh