-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.67 KB
/
Makefile
File metadata and controls
55 lines (42 loc) · 1.67 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
SHELL := /usr/bin/env bash
.DEFAULT_GOAL := help
.PHONY: help test verify mod-tidy-check govulncheck smoke firmware-smoke quickstart run-ui run-daemon ci-local release-readiness
help:
@echo "MAMA developer commands"
@echo " make test - Run Go tests"
@echo " make verify - Verify Go module cache"
@echo " make mod-tidy-check - Ensure go.mod/go.sum are tidy"
@echo " make govulncheck - Run vulnerability scan"
@echo " make smoke - Run quickstart smoke test"
@echo " make firmware-smoke - Run firmware protocol stress tests"
@echo " make quickstart - Build dist/mama-quickstart bundle"
@echo " make run-ui - Start MAMA with setup UI"
@echo " make run-daemon - Start MAMA hidden (tray/runtime mode)"
@echo " make ci-local - Run local CI-equivalent checks"
@echo " make release-readiness - Run production readiness gate checks"
test:
cd mama && go test ./...
verify:
cd mama && go mod verify
mod-tidy-check:
cd mama && go mod tidy && git diff --exit-code -- go.mod go.sum
govulncheck:
cd mama && go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
smoke:
scripts/quickstart-smoke-test.sh
firmware-smoke:
scripts/firmware/run_encoder_stress_test.sh
scripts/firmware/run_i2c_robustness_test.sh
quickstart:
scripts/quickstart.sh
run-ui:
cd mama && go run ./cmd/mama
run-daemon:
cd mama && go run ./cmd/mama -open=false -start-hidden=true
ci-local: test verify mod-tidy-check govulncheck
release-readiness:
ifeq ($(OS),Windows_NT)
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/release/production-readiness-check.ps1
else
scripts/release/production-readiness-check.sh
endif