-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
89 lines (77 loc) · 1.77 KB
/
Makefile.toml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Run the most important ci checks locally.
[tasks.ci-fast]
dependencies = ["check-format", "clippy", "docs", "no-std", "audit", "test"]
# Run the full ci checks locally.
[tasks.ci]
dependencies = [
"check-format",
"clippy",
"docs",
"no-std",
"audit",
"coverage-tarpaulin",
"report-public-api",
]
# Run linter on workspace.
[tasks.clippy]
args = ["clippy", "--all-features", "--workspace"]
# Check all workspace.
[tasks.check]
command = "cargo"
args = ["check", "--all-features", "--workspace"]
# Run doc with all features.
[tasks.docs]
args = ["doc", "--no-deps", "--all-features", "--workspace"]
# Build package in no_std environment.
[tasks.no-std]
command = "cargo"
args = ["check", "--target", "thumbv7m-none-eabi"]
# Run cargo public-api to report public changes.
[tasks.report-public-api]
script = { file = "ci/report_public_api.sh" }
# Run tarpaulin with config file.
[tasks.coverage-tarpaulin.linux]
command = "cargo"
args = ["tarpaulin", "--config", "tarpaulin.toml"]
# Run all `uX` related unit tests.
[tasks.tuint]
command = "cargo"
args = ["test", "--all-features", "--lib", "tests_uint"]
# Run all `iX` related unit tests.
[tasks.tint]
command = "cargo"
args = ["test", "--all-features", "--lib", "tests_int"]
# Run all types shared implementation unit tests.
[tasks.tcom]
command = "cargo"
args = ["test", "--all-features", "--lib", "common"]
# Run all `uX` related doc examples.
[tasks.tduint]
command = "cargo"
args = [
"test",
"--all-features",
"--doc",
"--",
"u8",
"u16",
"u32",
"u64",
"u128",
"usize",
]
# Run all `iX` related doc examples.
[tasks.tdint]
command = "cargo"
args = [
"test",
"--all-features",
"--doc",
"--",
"i8",
"i16",
"i32",
"i64",
"i128",
"isize",
]