-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.toml
79 lines (65 loc) · 1.87 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
### Lints ###
# cargo clippy --all-targets --release -- --deny=warnings
# Lints --release profile
[tasks.release-lint]
private = true
command = "cargo"
args = ["clippy", "--all-targets", "--release", "--", "--deny=warnings"]
# env RUSTFLAG="--cfg releasing" cargo clippy --all-targets -- --deny=warnings
# Lints --cfg releasing flag
[tasks.releasing-lint]
private = true
command = "cargo"
args = ["clippy", "--all-targets", "--", "--deny=warnings"]
[tasks.releasing-lint.env]
RUSTFLAG = "--cfg releasing"
# cargo fmt --all -- --check
[tasks.fmt-lint]
private = true
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
# Each workspace member needs to be checked separately so that
# feature flags will not be merged.
[tasks.lints.run_task]
name = ["fmt-lint", "release-lint", "releasing-lint"]
fork = true
### Tests ###
# wasm-pack test --headless --firefox
[tasks.wasm-test]
private = true
workspace = true
command = "wasm-pack"
args = ["test", "--headless", "--firefox"]
# wasm-pack test --headless --firefox --all-features
[tasks.wasm-test-all-features]
private = true
workspace = true
command = "wasm-pack"
args = ["test", "--headless", "--firefox", "--all-features"]
# cargo test
[tasks.native-test]
private = true
workspace = true
command = "cargo"
args = ["test"]
# cargo test --all-features
[tasks.native-test-all-features]
private = true
workspace = true
command = "cargo"
args = ["test", "--all-features"]
# cargo test --doc --all-features
[tasks.doc-test]
private = true
workspace = false
command = "cargo"
args = ["test", "--doc", "--all-features", "--workspace"]
# Each workspace member needs to be tested separately so that
# feature flags will not be merged.
[tasks.tests]
workspace = false
[tasks.tests.run_task]
name = ["wasm-test", "wasm-test-all-features", "native-test", "native-test-all-features", "doc-test"]
fork = true