Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (55 loc) · 1.57 KB
/
Copy pathMakefile
File metadata and controls
69 lines (55 loc) · 1.57 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
# Convenience targets. Everything here is also runnable directly.
COMPOSE := docker compose -f docker/docker-compose.yml
CARGO := cargo
EMBEDDER_DIR := embedder
.DEFAULT_GOAL := help
.PHONY: help
help:
@printf 'Adrian v0.1.0\n\n'
@printf ' make build build both cargo workspaces\n'
@printf ' make test run both test suites\n'
@printf ' make check fmt, clippy, and tests\n'
@printf ' make fmt format both workspaces\n'
@printf ' make clippy lint both workspaces\n'
@printf ' make up build and start the compose stack\n'
@printf ' make down stop the stack and remove volumes\n'
@printf ' make logs follow the stack logs\n'
@printf ' make weights fetch and verify the model weights\n'
@printf ' make golden regenerate the reference embeddings\n'
@printf ' make smoke end-to-end test against the compose stack\n'
.PHONY: build
build:
$(CARGO) build --workspace
cd $(EMBEDDER_DIR) && $(CARGO) build
.PHONY: test
test:
$(CARGO) test --workspace
cd $(EMBEDDER_DIR) && $(CARGO) test
.PHONY: fmt
fmt:
$(CARGO) fmt --all
cd $(EMBEDDER_DIR) && $(CARGO) fmt --all
.PHONY: clippy
clippy:
$(CARGO) clippy --workspace --all-targets -- -D warnings
cd $(EMBEDDER_DIR) && $(CARGO) clippy --all-targets -- -D warnings
.PHONY: check
check: fmt clippy test
.PHONY: up
up:
$(COMPOSE) up -d --build
.PHONY: down
down:
$(COMPOSE) down -v
.PHONY: logs
logs:
$(COMPOSE) logs -f
.PHONY: weights
weights:
scripts/fetch_weights.sh
.PHONY: golden
golden:
cd scripts/oracle && uv run python gen_golden.py
.PHONY: smoke
smoke:
scripts/smoke.sh