forked from smartcontractkit/wasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 1.03 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
.PHONY: test
test:
go test -v -count 1 ./... -run TestSmoke
.PHONY: test
test_loki:
go test -v -count 1 ./... -run TestRender
.PHONY: test
test_pyro:
go test -v -run TestPyroscopeLocalTrace -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:
./bin/golangci-lint --color=always run -v
.PHONY: install_deps
install_deps:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.51.2
curl -sSfL https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 -o bin/jq
chmod +x ./bin/jq