-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
84 lines (60 loc) · 1.73 KB
/
Makefile
File metadata and controls
84 lines (60 loc) · 1.73 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: build test proto lint clean fmt eval eval-all eval-typed eval-revision eval-decay eval-trust eval-competence eval-plan eval-vector eval-consolidation eval-metrics eval-invariants eval-grpc ts-install ts-typecheck ts-test ts-build
GO := go
NPM := npm
BINARY := bin/membraned
MODULE := github.com/BennettSchwartz/membrane
PROTO_DIR := api/proto/membrane/v1
TS_DIR := clients/typescript
build:
$(GO) build -o $(BINARY) ./cmd/membraned
test:
$(GO) test ./...
eval:
./tools/eval/run.sh
eval-vector:
./tools/eval/run.sh
eval-typed:
$(GO) test ./tests -run TestEvalTypedMemory
eval-revision:
$(GO) test ./tests -run TestEvalRevisionLifecycle
eval-decay:
$(GO) test ./tests -run TestEvalDecayAndReinforce
eval-trust:
$(GO) test ./tests -run TestEvalTrustGating
eval-competence:
$(GO) test ./tests -run TestEvalCompetenceSelection
eval-plan:
$(GO) test ./tests -run TestEvalPlanGraphSelection
eval-consolidation:
$(GO) test ./tests -run TestEvalConsolidation
eval-metrics:
$(GO) test ./tests -run TestEvalMetrics
eval-invariants:
$(GO) test ./tests -run "TestEval(Ingestion|Retrieval|Revision|Trust)"
eval-grpc:
$(GO) test ./tests -run TestEvalGRPC
eval-all:
$(GO) test ./tests -run TestEval
./tools/eval/run.sh
ts-install:
cd $(TS_DIR) && $(NPM) ci
ts-typecheck:
cd $(TS_DIR) && $(NPM) run typecheck
ts-test:
cd $(TS_DIR) && $(NPM) test -- --hookTimeout=120000
ts-build:
cd $(TS_DIR) && $(NPM) run build
proto:
mkdir -p api/grpc/gen/membranev1
protoc \
--go_out=api/grpc/gen/membranev1 --go_opt=paths=source_relative \
--go-grpc_out=api/grpc/gen/membranev1 --go-grpc_opt=paths=source_relative \
-I $(PROTO_DIR) \
$(PROTO_DIR)/*.proto
lint:
$(GO) vet ./...
staticcheck ./...
clean:
rm -rf bin/
fmt:
$(GO) fmt ./...