-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
30 lines (22 loc) · 822 Bytes
/
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
run_go_dev:
cd app/cmd/uptime/; swag init --pd true; go run main.go
run_web_dev:
cd frontend; npm run start
build_go:
cd app/cmd/uptime/; swag init --pd true; rice embed-go; go build
build_web:
cd frontend; npm run build
build:
cd frontend; npm run build
go test ./... -cover
cd app/cmd/uptime/; swag init --pd true; rice embed-go; go build
build_linux:
cd frontend; npm run build
go test ./... -cover
cd app/cmd/uptime/; GOOS=linux GOARCH=amd64 swag init --pd true; GOOS=linux GOARCH=amd64 rice embed-go; GOOS=linux GOARCH=amd64 go build
test:
go test ./... -cover
load_test:
k6 run --summary-trend-stats="med,p(95),p(99.9)" load_testing/script.js
benchmark:
cd load_testing; plow ${UPTIME_HOST}/API/v1/services -c 100 -n 10000 -T 'application/json' -m GET -H "Authorization: Bearer ${UPTIME_TOKEN}"