-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1.79 KB
/
Copy pathMakefile
File metadata and controls
56 lines (42 loc) · 1.79 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
PYTHON ?= python
MIRROR_PUBLIC_DEMO_BASE_URL ?= https://mirror-public-demo.onrender.com
MIRROR_REMOTE_SMOKE_TIMEOUT ?= 60
MIRROR_REMOTE_SMOKE_RETRIES ?= 5
MIRROR_REMOTE_SMOKE_RETRY_DELAY ?= 2
.PHONY: setup smoke test eval-demo eval-transfer public-demo-check plugin-check plugin-release-check plugin-cli-preflight plugin-app-preflight plugin-remote-check dev-api dev-web
setup:
$(PYTHON) -m pip install -e backend
smoke:
$(PYTHON) -m backend.app.cli smoke
test:
$(PYTHON) -m pytest backend/tests -q
eval-demo:
$(PYTHON) -m backend.app.cli eval-demo
eval-transfer:
$(PYTHON) -m backend.app.cli eval-transfer
public-demo-check:
$(PYTHON) -m backend.app.cli eval-demo
$(PYTHON) scripts/scan_frontend_bundle.py --path artifacts/demo
npm run build --prefix frontend
$(PYTHON) scripts/scan_frontend_bundle.py
$(PYTHON) scripts/smoke_public_demo_web.py
plugin-check:
$(PYTHON) plugins/mirror-codex/scripts/validate_plugin.py
$(PYTHON) -m pytest plugins/mirror-codex/tests -q
$(PYTHON) plugins/mirror-codex/scripts/smoke_mcp_stdio.py
$(PYTHON) plugins/mirror-codex/scripts/acceptance_check.py
plugin-release-check: plugin-check
$(PYTHON) plugins/mirror-codex/scripts/check_pr_scope.py
$(PYTHON) scripts/check_no_secrets.py
$(PYTHON) -m backend.app.cli audit-phase phase2
git diff --check
plugin-cli-preflight:
$(PYTHON) plugins/mirror-codex/scripts/cli_marketplace_preflight.py
plugin-app-preflight:
$(PYTHON) plugins/mirror-codex/scripts/app_protocol_preflight.py
plugin-remote-check:
$(PYTHON) scripts/smoke_public_demo_web.py --base-url $(MIRROR_PUBLIC_DEMO_BASE_URL) --timeout $(MIRROR_REMOTE_SMOKE_TIMEOUT) --http-retries $(MIRROR_REMOTE_SMOKE_RETRIES) --retry-delay $(MIRROR_REMOTE_SMOKE_RETRY_DELAY)
dev-api:
$(PYTHON) -m uvicorn backend.app.main:app --reload
dev-web:
npm run dev --prefix frontend