#!/bin/bash # Full SX build pipeline — OCaml + JS browser + JS test + JS tests. set -euo pipefail cd "$(dirname "$0")/.." echo "=== OCaml build ===" (cd hosts/ocaml && eval $(opam env 2>/dev/null) && dune build) || { echo "FAIL: OCaml build"; exit 1; } echo "=== JS browser build ===" python3 hosts/javascript/cli.py --output shared/static/scripts/sx-browser.js || { echo "FAIL: JS build"; exit 1; } echo "=== JS test build ===" python3 hosts/javascript/cli.py --extensions continuations --spec-modules types --output shared/static/scripts/sx-full-test.js || { echo "FAIL: test build"; exit 1; } echo "=== JS tests ===" node hosts/javascript/run_tests.js --full 2>&1 | tail -3 || { echo "FAIL: JS tests"; exit 1; } echo "=== All OK ==="