]> code.octet-stream.net Git - broadcaster/blobdiff - buildscripts/test.sh
Configure CI
[broadcaster] / buildscripts / test.sh
diff --git a/buildscripts/test.sh b/buildscripts/test.sh
new file mode 100755 (executable)
index 0000000..5dbc31c
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -euxo pipefail
+cd "$(git rev-parse --show-toplevel)"
+source buildscripts/init.sh "$1"
+
+case $PLATFORM in
+linux-x86_64|linux-armhf|linux-arm64)
+    cd server
+    go test
+
+    cd ../radio
+    go test
+    ;;
+*)
+    echo "Skipping build on ${PLATFORM}"
+    exit 0
+    ;;
+esac
+
+
+