-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 1.08 KB
/
Makefile
File metadata and controls
31 lines (25 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: test test-claude test-all clean-zombies build release
# Kill orphaned test runners from previous aborted runs.
# These hold PTY file descriptors and cargo locks, blocking new test runs.
clean-zombies:
@pkill -f 'target/debug/deps/mish-' 2>/dev/null || true
@pkill -f 'target/release/deps/mish-' 2>/dev/null || true
# Inner loop: lib + grammar + MCP + CLI integration (~20s)
test: clean-zombies
MISH_NO_DAEMON=1 cargo test --lib --test grammar_tests --test fixture_pipeline_tests \
--test mcp_integration --test cli_integration
# Pre-release: Claude Code compat + stdout contamination (~35s)
test-claude: clean-zombies
cargo test --test claude_code_compat --test stdout_contamination
# Everything
test-all: clean-zombies
cargo test
# Build debug
build:
cargo build
# Build release + update symlink
release:
cargo build --release
ln -sf $(CURDIR)/target/release/mish /opt/homebrew/bin/mish
git tag v$(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')
git push origin v$(shell cargo metadata --no-deps --format-version=1 | jq -r '.packages[0].version')