From 32e27bbeeae7179c03e84f9f913dc6e13dc6afba Mon Sep 17 00:00:00 2001 From: mirivlad Date: Tue, 16 Jun 2026 12:12:09 +0800 Subject: [PATCH] feat: add scripts/build.sh --- scripts/build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 scripts/build.sh diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..2dd1026 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT="$(cd "$(dirname "$0")/.." && pwd)" + +echo "=== verstak-sync-server build ===" +if [ -f "$ROOT/go.mod" ]; then + echo "[go build]" + (cd "$ROOT" && go build ./...) + echo " ✅ go build" + if go test -list . ./... &>/dev/null 2>&1; then + (cd "$ROOT" && go test -count=1 ./... 2>&1 || true) + else + echo " ℹ️ no tests" + fi +else + echo " ℹ️ repository empty — no build target yet" + echo " 📝 This repo will hold the Verstak sync server (CRDT-based)" +fi +echo "" +echo "✅ build passed (no-op)"