-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (41 loc) · 1.28 KB
/
Makefile
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
.PHONY: test
test:
go test -v -count 1 `go list ./... | grep -v examples` -run TestSmoke
.PHONY: test_race
test_race:
go test -v -race -count 1 `go list ./... | grep -v examples` -run TestSmoke
.PHONY: test_bench
test_bench:
go test -bench=. -benchmem -count 1 -run=^#
.PHONY: test+cover
test_cover:
go test -v -coverprofile cover.out -count 1 `go list ./... | grep -v examples` -run TestSmoke
go tool cover -html cover.out
.PHONY: test
test_loki:
go test -v -count 1 `go list ./... | grep -v examples` -run TestPerfRenderLoki
.PHONY: test
test_pyro_rps:
go test -v -run TestPyroscopeLocalTraceRPSCalls -trace trace.out
.PHONY: test
test_pyro_vu:
go test -v -run TestPyroscopeLocalTraceVUCalls -trace trace.out
.PHONY: dashboard
dashboard:
go run dashboard/dashboard.go
.PHONY: start
start:
docker compose -f compose/docker-compose.yaml up -d
sleep 5 && curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "role": "Admin"}' http://localhost:3000/api/auth/keys | jq .key
.PHONY: stop
stop:
docker compose -f compose/docker-compose.yaml down -v
.PHONY: pyro_start
pyro_start:
docker compose -f compose/pyroscope-compose.yaml up -d
.PHONY: pyro_stop
pyro_stop:
docker compose -f compose/pyroscope-compose.yaml down -v
.PHONY: lint
lint:
golangci-lint --color=always run -v