-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
97 lines (73 loc) · 2.04 KB
/
Makefile
File metadata and controls
97 lines (73 loc) · 2.04 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.PHONY: help build test release install uninstall clean check fmt fmt-check lint sandbox devc devc-up devc-down devc-restart devc-reset devc-status test-docker e2e
help:
@echo "veto - AI operation guardian"
@echo ""
@echo "Usage: make <target>"
@echo ""
@echo " Build & Run:"
@echo " build Build debug binary"
@echo " release Build release binary"
@echo " install Install to /usr/local/bin"
@echo " uninstall Remove from /usr/local/bin"
@echo " clean Clean build artifacts"
@echo ""
@echo " Quality:"
@echo " test Run unit tests"
@echo " lint Run clippy linter"
@echo " fmt Format code"
@echo " fmt-check Check formatting (CI)"
@echo " check fmt-check + lint + test"
@echo ""
@echo " Docker:"
@echo " test-docker Run tests in Docker (isolated)"
@echo " sandbox Enter Docker sandbox for safe testing"
@echo " e2e Run e2e tests in sandbox"
@echo ""
@echo " Devcontainer:"
@echo " devc Start devcontainer + enter shell"
@echo " devc-up Start devcontainer (no shell)"
@echo " devc-down Stop devcontainer"
@echo " devc-restart Restart devcontainer"
@echo " devc-reset Full reset (remove volumes + rebuild)"
@echo " devc-status Show devcontainer status"
# === Build & Run ===
build:
cargo build
release:
cargo build --release
install: release
sudo cp target/release/veto /usr/local/bin/
uninstall:
@./uninstall.sh
clean:
cargo clean
# === Quality ===
test:
cargo test
lint:
cargo clippy -- -D warnings
fmt:
cargo fmt
fmt-check:
cargo fmt -- --check
check: fmt-check lint test
# === Docker ===
test-docker:
./scripts/test_docker.sh
sandbox: release
docker compose run --rm sandbox
e2e: release
./scripts/e2e.sh
# === Devcontainer ===
devc:
./scripts/devc.sh up && ./scripts/devc.sh shell
devc-up:
./scripts/devc.sh up
devc-down:
./scripts/devc.sh down
devc-restart:
./scripts/devc.sh restart
devc-reset:
./scripts/devc.sh reset
devc-status:
./scripts/devc.sh status