-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 2.08 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 2.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: all clean lint test test-fast test-slow check sandbox sandbox-llm sandbox-shell sandbox-openclaw sandbox-openclaw-keep sandbox-openclaw-clean clean-branches
all: check
clean: sandbox-openclaw-clean
lint:
bunx biome check .
bun run lint-architecture.ts
test:
@# Run evolve.test.ts separately: its mock.module() pollutes the global module registry
bun test $$(find tests -name '*.test.ts' ! -name 'evolve.test.ts')
bun test tests/evolution/evolve.test.ts
test-fast:
@# Fast unit tests only — excludes mock.module() tests and integration tests (~10s vs ~80s)
bun test $$(find tests -name '*.test.ts' ! -name 'evolve.test.ts' ! -name 'integration.test.ts' ! -name 'dashboard-server.test.ts' ! -path '*/blog-proof/*')
test-slow:
@# Integration and mock.module() tests only
bun test tests/evolution/evolve.test.ts tests/evolution/integration.test.ts tests/monitoring/integration.test.ts tests/dashboard/dashboard-server.test.ts
sandbox:
bun run tests/sandbox/run-sandbox.ts
sandbox-llm:
docker compose -f tests/sandbox/docker/docker-compose.yml up --build
sandbox-shell:
docker compose -f tests/sandbox/docker/docker-compose.yml run --build --entrypoint bash selftune-sandbox
sandbox-openclaw:
docker compose -f tests/sandbox/docker/docker-compose.openclaw.yml up --build
sandbox-openclaw-keep:
KEEP_DATA=1 docker compose -f tests/sandbox/docker/docker-compose.openclaw.yml up --build
sandbox-openclaw-clean:
docker compose -f tests/sandbox/docker/docker-compose.openclaw.yml down -v
clean-branches:
@echo "Pruning remote tracking refs..."
git fetch --prune
@echo "Deleting local custom/prefix/router-* branches..."
-git branch --list 'custom/prefix/router-*' | xargs git branch -D 2>/dev/null
@echo "Deleting local selftune/evolve/test-skill-* branches..."
-git branch --list 'selftune/evolve/test-skill-*' | xargs git branch -D 2>/dev/null
@echo "Deleting local worktree-agent-* branches..."
-git branch --list 'worktree-agent-*' | xargs git branch -D 2>/dev/null
@echo "Branch cleanup complete."
@git branch | wc -l | xargs -I{} echo "{} branches remaining"
check: lint test sandbox