Repository navigation
Expand file tree
/
Copy pathmise.toml
More file actions
53 lines (42 loc) · 1.73 KB
/
Copy pathmise.toml
File metadata and controls
53 lines (42 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
[tools]
go = "1.27"
atlas = "latest"
k6 = "latest"
goreleaser = "2.16.0"
"go:github.com/onsi/ginkgo/v2/ginkgo" = "2.33.0"
[tasks."db:diff"]
description = "Plan a migration from the bun models. Pass a name: mise run db:diff add_vehicles"
run = "atlas migrate diff --env local"
[tasks."db:lint"]
description = "Check the pending migrations for destructive or unsafe changes"
run = "atlas migrate lint --env local --latest 1"
[tasks."db:hash"]
description = "Rewrite atlas.sum after editing a migration by hand"
run = "atlas migrate hash --env local"
[tasks."db:up"]
description = "Apply migrations, then reconcile the sync triggers"
run = "go run ./apps/migrate"
[tasks.test]
description = "Run every spec; the medium suites need Docker"
run = "ginkgo -p -r"
[tasks."test:unit"]
description = "Run the specs that need no database"
run = "ginkgo -p -r --label-filter=unit"
[tasks.dev]
description = "Start postgres and the requester with hot reload"
run = "docker compose up --build"
[tasks."dev:down"]
description = "Stop the dev stack and drop the postgres volume"
run = "docker compose down -v"
[tasks."dev:clean"]
description = "Clean up the dev stack and remove any leftover volumes"
run = "docker compose down -v --rmi all"
[tasks.load]
description = "Load test the dev stack at 3x peak traffic, with k6 inside Docker and the gateway capped at 200mbit. SYNC_TIMETABLES=false leaves timetables out of every sync"
run = [
"docker compose -f docker-compose.yml -f docker-compose.load.yml up -d --build --wait",
"docker compose -f docker-compose.yml -f docker-compose.load.yml run --rm k6",
]
[tasks."load:remote"]
description = "Load test a deployed gateway at 3x peak traffic. Set BASE_URL to its address"
run = "ulimit -n 65536 && k6 run k6/load-test.ts"