add development and build scripts
This commit is contained in:
14
scripts/build-backend.sh
Executable file
14
scripts/build-backend.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
OUT_DIR="$ROOT_DIR/backend/bin"
|
||||
|
||||
mkdir -p "$OUT_DIR"
|
||||
|
||||
cd "$ROOT_DIR/backend"
|
||||
go test ./...
|
||||
go build -o "$OUT_DIR/senlin-agent-api" ./cmd/api
|
||||
|
||||
echo "Backend binary: $OUT_DIR/senlin-agent-api"
|
||||
|
||||
Reference in New Issue
Block a user