CI / test (push) Failing after 16s
moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
42 lines
1.3 KiB
Bash
Executable File
42 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Full verification, identical to CI:
|
|
# WIT parses -> bindings are fresh -> moon check/test (pure logic) ->
|
|
# build all components -> conformance -> host integration tests.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"; cd "$ROOT"
|
|
export PATH="$ROOT/.tools/bin:$HOME/.moon/bin:$PATH"
|
|
step() { printf '\n== %s\n' "$*"; }
|
|
|
|
step "bindings are in sync with wit/"
|
|
scripts/gen-bindings.sh --check
|
|
|
|
step "moon check"
|
|
moon check
|
|
|
|
step "moon test (pure logic, wasm target)"
|
|
moon test
|
|
|
|
step "build components"
|
|
scripts/build.sh
|
|
|
|
step "build wm & decoration components"
|
|
scripts/build-wm.sh
|
|
|
|
step "build wasi-gfx GUI loader component"
|
|
scripts/build-gfx.sh
|
|
|
|
if command -v wasmtime >/dev/null; then
|
|
step "wasmtime accepts every component (compile only; hosts supply the imports)"
|
|
for f in build/components/*.wasm; do
|
|
wasmtime compile "$f" -o "$(mktemp -u).cwasm" >/dev/null && echo " ok $(basename "$f")"
|
|
done
|
|
fi
|
|
|
|
step "host integration tests (jco + Node)"
|
|
(cd host && npm test)
|
|
|
|
step "pure-MoonBit native Wayland compositor + wasi-gfx + e2e tests (compositor/)"
|
|
XDG_CONFIG_HOME="$(mktemp -d)" CHANDRA_TEST_CONFIG=1 \
|
|
moon test --target native --warn-list -a compositor/renderer compositor/gfx compositor/wasm compositor/host
|
|
moon build --target native --warn-list -a compositor/bin
|