forked from yewstack/yew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
90 lines (74 loc) · 1.95 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
90
######################
#
# public tasks:
# * checks-flow
# * lint
# * lint-release
# * format
# * test-flow
# * test
# * doc-test
# * website-test
#
# packages/yew also contains `clippy-feature-soundness` to ensure everything is fine
# Run `cargo make --list-all-steps` for more details.
#
######################
[config]
min_version = "0.32.4"
skip_core_tasks = true
default_to_workspace = false
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
CARGO_MAKE_CLIPPY_ARGS = "-- --deny=warnings"
CARGO_MAKE_WORKSPACE_SKIP_MEMBERS = [
"examples/*",
"tools/*",
]
[config.modify_core_tasks]
private = true
namespace = "core"
# checks
[tasks.lint]
category = "Checks"
description = "Runs clippy"
command = "cargo"
args = ["clippy", "--", "--deny=warnings"]
# Needed, because we have some code differences between debug and release builds
[tasks.lint-release]
category = "Checks"
command = "cargo"
args = ["clippy", "--all-targets", "--release", "--", "--deny=warnings"]
[tasks.format]
category = "Checks"
toolchain = "nightly"
env = { CARGO_MAKE_RUST_CHANNEL = "nightly" }
[tasks.checks-flow]
category = "Checks"
description = "Runs clippy in debug and release mode and format all the code"
run_task = { name = ["lint", "lint-release", "format"], fork = true }
# Tests
[tasks.test]
command = "cargo"
args = ["test", "--all-targets"]
workspace = true
[tasks.doc-test]
command = "cargo"
args = ["test", "--doc", "--all-features"]
workspace = true
[tasks.website-test]
command = "cargo"
args = ["test", "-p", "website-test"]
[tasks.test-flow]
category = "Testing"
description = "Run all tests"
run_task = { name = ["test", "doc-test", "website-test"], fork = true, parallel = true }
# misc
[tasks.generate-change-log]
category = "Maintainer processes"
toolchain = "stable"
command = "cargo"
args = ["run", "-p", "changelog", "--release", "${@}"]
[tasks.default]
#run_task = { name = ["checks-flow", "test-flow"], fork = true }
dependencies = ["checks-flow", "test-flow"]