Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
41 lines (31 loc) · 1.37 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
GO := $(shell command -v go 2>/dev/null || echo /usr/local/go/bin/go)
PNPM := corepack pnpm@10.34.5
.PHONY: verify backend-verify frontend-verify fuzz build dist test-boards ai-eval deploy
verify: backend-verify frontend-verify
backend-verify:
cd backend && $(GO) build ./... && $(GO) vet ./... && $(GO) test ./... && golangci-lint run
frontend-verify:
cd frontend && $(PNPM) install --frozen-lockfile
cd frontend && $(PNPM) run lint
cd frontend && $(PNPM) run typecheck
cd frontend && $(PNPM) run test
cd frontend && $(PNPM) run bench
# Not part of the default gate: each run takes about a minute.
fuzz:
cd backend && $(GO) test ./internal/kicad -run Fuzz -fuzz=Fuzz -fuzztime=60s
# Builds the backend binary and the frontend bundle into dist/.
build:
./scripts/build.sh
# Cross-compiled release archives for the current version (see scripts/build.sh).
dist:
./scripts/build.sh --release
# Downloads a few open-source boards so the tests that need real board files run instead of skipping.
test-boards:
./scripts/fetch-test-boards.sh
# Real model plus real kicad-cli DRC (Docker). Costs money and is never part of `make verify`.
# Needs GEMINI_API_KEY and ASSISTANT_MODEL (see backend/.env.example) and the boards from `make test-boards`.
ai-eval:
cd backend && $(GO) run ./cmd/aieval
# Builds and runs backend and frontend together for local use.
deploy:
./scripts/deploy.sh