-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (49 loc) · 1.52 KB
/
Makefile
File metadata and controls
61 lines (49 loc) · 1.52 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
.PHONY: all build release run check test lint fmt clean help test-e2e-build test-e2e
# Default target
all: fmt lint test build
# Build in debug mode
build:
cargo build
# Build in release mode
release:
cargo build --release
# Run the application (debug mode)
run:
cargo run
# Check if the code compiles
check:
cargo check
# Run tests
test:
cargo test --features test-support
# Run clippy for linting
lint:
cargo clippy --features test-support -- -D warnings
# Format code
fmt:
cargo fmt
# Clean build artifacts
clean:
cargo clean
# Build Docker images for E2E tests
test-e2e-build:
docker build --load -t mcp-test-claude-code tests/docker/claude-code/
docker build --load -t mcp-test-cursor tests/docker/cursor/
docker build --load -t mcp-test-gemini-cli tests/docker/gemini-cli/
# Run E2E testcontainers tests (requires Docker)
test-e2e: test-e2e-build
cargo test --features test-support,e2e-tests
# Show help
help:
@echo "Available targets:"
@echo " build - Build in debug mode"
@echo " release - Build in release mode"
@echo " run - Run the application (debug mode)"
@echo " check - Check if the code compiles"
@echo " test - Run tests"
@echo " lint - Run clippy for linting"
@echo " fmt - Format code"
@echo " clean - Clean build artifacts"
@echo " test-e2e-build - Build Docker images for E2E tests"
@echo " test-e2e - Run E2E testcontainers tests (requires Docker)"
@echo " all - Run fmt, lint, test, and build"