forked from mars-protocol/cw-asset
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
102 lines (89 loc) · 2.47 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
91
92
93
94
95
96
97
98
99
100
101
102
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.format]
toolchain = "nightly"
install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" }
command = "cargo"
args = ["fmt", "--all", "--", "--emit=files","--verbose"]
[tasks.format-check]
toolchain = "nightly"
install_crate = { crate_name = "rustfmt-nightly", rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" }
command = "cargo"
args = ["fmt", "--all", "--","--verbose", "--check"]
# This task requires the `cargo-udeps` package: https://crates.io/crates/cargo-udeps
[tasks.udeps]
toolchain = "nightly"
command = "cargo"
args = ["udeps"]
[tasks.deny]
command = "cargo"
args = ["deny", "check"]
[tasks.check]
command = "cargo"
args = ["check"]
[tasks.clippy-check]
toolchain = "nightly"
command = "cargo"
args = ["clippy","--all-features","--","-D","warnings"]
[tasks.clippy-fix]
toolchain = "nightly"
command = "cargo"
args = ["clippy","--fix","--allow-staged","--","-D","warnings"]
[tasks.todo-check]
script = { file = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/todo-lint.sh", absolute_path = true }
# This task requires the `cargo-tarpaulin` package: https://crates.io/crates/cargo-tarpaulin
[tasks.cov]
command = "cargo"
args = [
"tarpaulin",
"--ignore-tests",
"-o",
"Lcov",
"--output-dir",
"target/tarpaulin",
]
[tasks.docs]
command = "cargo"
args = [
"doc",
"--target-dir",
"docs",
"--color",
"never",
"--no-deps",
"--workspace",
"--exclude",
"'cosmwasm*'",
"--exclude",
"'cw*'",
"--release",
]
# This task requires the `cargo-machete` package: https://crates.io/crates/cargo-machete
[tasks.machete-check]
command = "cargo"
args = ["machete"]
[tasks.machete-fix]
command = "cargo"
args = ["machete", "--fix"]
# Run automatically on "cargo make". This is the default task. We keep all the
# default tasks and add our own "custom" task.
[tasks.dev-test-flow]
run_task = "custom-default"
# Custom tasks to run on "cargo make"
[tasks.custom-default]
dependencies = ["deny", "clippy-fix", "docs", "machete-fix"]
# Wasm build of test contract
[tasks.wasm]
command = "cargo"
args = [
"build",
"--target",
"wasm32-unknown-unknown",
"--lib",
"--release",
"--package",
"osmosis-test-contract"
]
# Docs and Test coverage are not run by default. Can run all with "cargo make all".
[tasks.all]
dependencies = ["dev-test-flow", "custom-default", "cov"]