Files
geointel/scripts/run_rc8_release_journeys.sh
T
Codex 55685ba1bd
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s
Automate RC8 release journeys
2026-07-18 06:07:44 +02:00

33 lines
900 B
Bash

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
BASE_URL="${1:-${GE_INTEL_BASE_URL:-http://127.0.0.1:1202}}"
OUTPUT_DIR="${2:-artifacts/rc8-release-journeys}"
GOLDEN_MANIFEST="${3:-artifacts/rc8-golden-areas.json}"
PYTHON_BIN="${PYTHON_BIN:-python3}"
if ! command -v "$PYTHON_BIN" >/dev/null 2>&1; then
PYTHON_BIN="python"
fi
if ! command -v "$PYTHON_BIN" >/dev/null 2>&1; then
echo "Python is required to provision release Areas." >&2
exit 2
fi
if ! command -v npm >/dev/null 2>&1; then
echo "Node.js/npm is required to execute release journeys." >&2
exit 2
fi
"$PYTHON_BIN" scripts/provision_release_golden_areas.py \
--base-url "$BASE_URL" \
--output "$GOLDEN_MANIFEST" \
--apply
npm --prefix frontend run test:e2e -- \
--base-url "$BASE_URL" \
--golden-manifest "../$GOLDEN_MANIFEST" \
--output "../$OUTPUT_DIR"