Files
marqdo-ext-ai/scripts/ci.sh
cflmy 144a6778f9 ci: add independent Woodpecker pipeline and optional real-model smoke
- rc.5 marqdo-ci-shell image, no sibling checkout or CLI rebuild
- scripts/ci.sh materializes pinned dependency, checks documents, runs acceptance
- real-model smoke stays optional and exits 2 (UNVERIFIED) without a credential
2026-11-29 23:45:29 +08:00

35 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
# Independent CI entry for marqdo-ext-ai.
#
# Explicit inputs only: a verified CLI executable and the installed default
# Bundle. Never reads the parent repository or a sibling checkout. The
# acceptance runner creates a throwaway consumer project, locks the pinned
# marqdo-ext-http dependency exactly like a real consumer, serves deterministic
# loopback fixtures and asserts real Observation output, request counts and
# request contents.
set -eu
: "${MARQDO_BIN:?set MARQDO_BIN to the verified marqdo executable}"
: "${MARQDO_STDLIB_DIR:?set MARQDO_STDLIB_DIR to the installed Bundle}"
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"
test -f marqdo.yaml
test -f marqdo.lock
echo "== cli =="
"$MARQDO_BIN" --version
python3 --version
echo "== dependency materialization (pinned) =="
"$MARQDO_BIN" lock
echo "== static document check =="
"$MARQDO_BIN" check index.mq.md
echo "== script syntax =="
python3 -m py_compile scripts/run_cases.py scripts/fixture_server.py
echo "== independent acceptance =="
python3 scripts/run_cases.py