forked from bkonkle/rust-example-caster-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
68 lines (57 loc) · 1.32 KB
/
Copy pathMakefile.toml
File metadata and controls
68 lines (57 loc) · 1.32 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[config]
main_project_member = "apps/api"
[tasks.dev]
workspace = false
env = { "RUST_LOG" = "info,sqlx::query=warn" }
command = "cargo"
args = ["run"]
[tasks.db-create]
workspace = false
cwd = "./"
command = "sqlx"
args = ["db", "create"]
[tasks.db-migrate]
workspace = false
cwd = "./"
command = "sqlx"
args = ["migrate", "run"]
[tasks.db-reset]
workspace = false
cwd = "./"
command = "sqlx"
args = ["db", "reset"]
[tasks.docker]
workspace = false
cwd = "./"
command = "docker-compose"
args = ["-f", "docker-compose.yml", "${@}"]
[tasks.docker-api]
workspace = false
cwd = "./apps/api"
command = "docker-compose"
args = [
"-f",
"../../docker-compose.yml",
"-f",
"docker-compose.app.yml",
"--env-file",
"../../.env",
"${@}",
]
[tasks.schema]
workspace = false
cwd = "./"
command = "cargo"
args = ["run", "--bin", "caster-schema"]
[tasks.integration]
workspace = false
env = { "RUN_MODE" = "test", "RUST_LOG" = "info,sqlx::query=warn", "RUST_TEST_THREADS" = 1, "RUST_BACKTRACE" = 0 }
command = "cargo"
args = ["test", "--", "--nocapture", "--ignored", "${@}"]
[tasks.integration-ci]
workspace = false
env = { "RUN_MODE" = "ci", "RUST_LOG" = "info,sqlx::query=warn", "RUST_TEST_THREADS" = 1 }
command = "cargo"
args = ["test", "--", "--nocapture", "--ignored"]