-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 847 Bytes
/
Makefile
File metadata and controls
42 lines (28 loc) · 847 Bytes
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
.PHONY: test bench vet build docs docs-dev docs-deploy clean
# === Go ===
build:
go build ./...
vet:
go vet ./...
test:
go test ./... -race -timeout 120s
test-short:
go test ./... -short -timeout 30s
test-stress:
go test -run TestStress -v -timeout 120s
bench:
go test -bench=BenchmarkTimeWheel -benchmem -count=1 -timeout 60s
bench-all:
go test -bench=. -benchmem -count=1 -timeout 120s
# === Docs ===
docs:
cd docs && pnpm install && pnpm clear && pnpm build
docs-dev:
cd docs && pnpm install && pnpm clear && pnpm build && npx docusaurus serve
docs-deploy:
@cd docs && pnpm install && pnpm clear && pnpm build
@npx wrangler whoami >/dev/null 2>&1 || npx wrangler login
cd docs && npx wrangler pages deploy build --project-name=seqdelay-docs
# === Clean ===
clean:
rm -rf docs/build docs/.docusaurus docs/node_modules