forked from Emiyaaaaa/HiveMind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (49 loc) · 1.81 KB
/
Copy pathMakefile
File metadata and controls
63 lines (49 loc) · 1.81 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
.PHONY: help up down api worker frontend db-schema test lint format integration gen-openapi gen-sdks sdk-test
help:
@echo "Available targets:"
@echo " up - start postgres + redis"
@echo " down - stop infrastructure"
@echo " api - run Spring Boot API server"
@echo " worker - run Python agent worker"
@echo " frontend - run Next.js dev server"
@echo " db-schema - apply Alembic schema to Postgres"
@echo " test - run backend unit tests"
@echo " integration - compose app profile + end-to-end smoke test"
@echo " lint - run ruff + tsc"
@echo " format - run ruff format"
@echo " gen-openapi - export openapi/openapi.yaml from Spring Boot"
@echo " gen-sdks - generate REST stubs from openapi/openapi.yaml"
@echo " sdk-test - run Python + TypeScript SDK tests"
up:
docker compose up -d postgres redis
down:
docker compose down
api:
cd backend-java && mvn spring-boot:run
worker:
cd backend && AGENTFLOW_WORKER_MODE=queue uv run python -m app.worker
frontend:
cd frontend && npm run dev
db-schema:
cd backend && uv run alembic upgrade head
test:
cd backend && uv run pytest -q
integration:
docker compose up -d postgres redis
cd backend && uv sync --all-extras && uv run alembic upgrade head
docker compose --profile app up -d --build
cd backend && \
uv run python ../scripts/ci/wait_for_http.py http://localhost:8000/v1/health 240 && \
uv run python ../scripts/ci/java_stack_smoke.py http://localhost:8000
lint:
cd backend && uv run ruff check .
cd frontend && npm run lint
format:
cd backend && uv run ruff format .
gen-openapi:
scripts/gen/export-openapi.sh
gen-sdks:
scripts/gen/generate-sdks.sh
sdk-test:
cd sdk/python && uv run --with pytest pytest -q
cd sdk/typescript && npm install && npm run build && npm run lint