-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 698 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 698 Bytes
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
32
33
34
35
36
37
38
39
40
.PHONY: check build release run test test-all clippy fmt logs
LOG_DIR = $(HOME)/.clemini/logs
LOG_FILE = $(LOG_DIR)/clemini.log.$(shell date +%Y-%m-%d)
check:
cargo check
build:
cargo build
release:
cargo build --release
run:
cargo run --
# Run unit tests only (fast, no API key required)
test:
cargo test --lib
cargo test --bin clemini
cargo test --test event_ordering_tests
# Run all tests including integration tests (requires GEMINI_API_KEY)
test-all:
cargo nextest run --run-ignored all
clippy:
cargo clippy -- -D warnings
fmt:
cargo fmt
logs:
@if [ -f "$(LOG_FILE)" ]; then \
tail -f "$(LOG_FILE)"; \
else \
echo "Log file not found: $(LOG_FILE)"; \
exit 1; \
fi