[PATCH] contrib/jenkins.sh: osmo-fl2k build verification

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-sdr@lists.osmocom.org/.

Oliver Smith osmith at sysmocom.de
Wed Jul 24 08:57:39 UTC 2019


Related: OS#3203
Signed-off-by: Oliver Smith <osmith at sysmocom.de>
---
 contrib/jenkins.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100755 contrib/jenkins.sh

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
new file mode 100755
index 0000000..8c3b1cf
--- /dev/null
+++ b/contrib/jenkins.sh
@@ -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
-- 
2.11.0




More information about the osmocom-sdr mailing list