-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile.toml
More file actions
66 lines (54 loc) · 1.54 KB
/
Makefile.toml
File metadata and controls
66 lines (54 loc) · 1.54 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
[env]
RUN_MODE = "testing"
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.pre-commit]
workspace = false
dependencies = ["lint", "spell", "format", "test"]
[tasks.lint]
workspace = false
command = "cargo"
args = ["clippy", "--tests", "--examples", "--all-targets", "--workspace"]
[tasks.lint-fix]
args = ["clippy", "--fix", "--allow-dirty"]
[tasks.format]
workspace = false
command = "cargo"
args = ["fmt", "--all"]
[tasks.test]
env = { RUN_MODE = "testing", RUST_BACKTRACE = "0", RUST_LOG = "discuz-server=trace,discuz-layers=trace" }
command = "cargo"
args = ["nextest", "run"]
[tasks.cargo-test]
env = { RUN_MODE = "testing", RUST_BACKTRACE = "0", RUST_LOG = "discuz-server=trace,discuz-layers=trace" }
command = "cargo"
args = ["test"]
[tasks.spell]
workspace = false
command = "cspell"
args = ["**"]
[tasks.dev]
workspace = false
cwd = "./apps/server"
env = { RUN_MODE = "development", RUST_BACKTRACE = "0", TRACING_LOG = "discuz-server=trace,discuz-layers=trace" }
command = "cargo"
args = ["watch", "-x run"]
[tasks.db-migrate]
workspace = false
cwd = "./apps/db-migration"
command = "cargo"
args = ["run"]
[tasks.cov]
workspace = false
command = "cargo"
env = { RUN_MODE = "testing" }
args = ["llvm-cov", "nextest", "${@}"]
[tasks.cov-ci]
workspace = false
command = "cargo"
env = { RUN_MODE = "ci" }
args = ["llvm-cov", "nextest", "--lcov", "--output-path", "lcov.info"]
[tasks.cov-check]
command = "curl"
workspace = false
description = "Validate the repository codecov YAML"
args = ["--data-binary", "@codecov.yml", "https://codecov.io/validate"]