mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
- Delete entire code-rs/ directory (1796 files) — just-every/code fork is no longer needed; hanzo-dev/ is the canonical Rust workspace - Update all build scripts, CI workflows, docs, and configs to reference hanzo-dev/ instead of code-rs/ - Update binary name references: code → dev throughout - Fix hanzo-cli/index.js, hanzo.sh, README.md, dev-cli READMEs - Include pre-existing TUI improvements (theme, colors, greeting, card styles, chatwidget refactor) and build-fast.sh enhancements (symlink install, smarter crate prefix detection) - codex-rs/ (read-only upstream mirror) is untouched
41 lines
1.0 KiB
Bash
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."
|