Files
dev/scripts/ci-tests.sh
T
zeekay 9d21631ddb fix(ci): update remaining code-rs references in scripts
Update all build and CI scripts to use hanzo-dev directory:
- ci-tests.sh: fix paths and package names
- build-fast.sh, pre-release.sh: update workspace paths
- upstream-merge scripts: update references
- responses-api-proxy package.json: fix directory path
2026-02-05 14:25:47 -08:00

41 lines
1.0 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
echo "[ci-tests] Running curated integration tests..."
if [[ "${SKIP_CARGO_TESTS:-0}" != "1" ]]; then
pushd hanzo-dev >/dev/null
cargo test -p hanzo-login --tests -q
cargo test -p hanzo-chatgpt --tests -q
cargo test -p hanzo-apply-patch --tests -q
cargo test -p hanzo-execpolicy --tests -q
cargo test -p mcp-types --tests -q
popd >/dev/null
fi
echo "[ci-tests] CLI smokes with host binary..."
BIN="${CI_CLI_BIN:-}"
if [[ -z "${BIN}" ]]; then
if [[ -x ./hanzo-dev/target/dev-fast/dev ]]; then
BIN=./hanzo-dev/target/dev-fast/dev
elif [[ -x ./hanzo-dev/target/debug/dev ]]; then
BIN=./hanzo-dev/target/debug/dev
fi
fi
if [[ -z "${BIN}" || ! -x "${BIN}" ]]; then
echo "[ci-tests] CLI binary not found; building debug binary..."
pushd hanzo-dev >/dev/null
cargo build --bin dev -q
popd >/dev/null
BIN=./hanzo-dev/target/debug/dev
fi
"${BIN}" --version >/dev/null
"${BIN}" completion bash >/dev/null
"${BIN}" doctor >/dev/null || true
echo "[ci-tests] Done."