-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.scmf.toml
187 lines (156 loc) · 4.23 KB
/
Makefile.scmf.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[config.modify_core_tasks]
private = true
namespace = "default"
[env]
RUSTFLAGS = "-D warnings"
[tasks.pc]
category = "Flows / Top"
description = "Cleanup, prepare, audit, verify and generate the documentation before commit."
dependencies = [
"pre-pc",
"cleanup",
"prepare",
"ci",
"post-pc"
]
[tasks.pre-pc]
private = true
description = "Customization point for additional pre-commit steps."
[tasks.post-pc]
private = true
description = "Customization point for additional pre-commit steps."
[tasks.cleanup]
category = "Flows / Basic"
description = "Completely clean the current working directory."
dependencies = [
"pre-cleanup",
"clean",
"post-cleanup"
]
[tasks.pre-cleanup]
private = true
description = "Customization point for additional cleanup steps."
[tasks.post-cleanup]
private = true
description = "Customization point for additional cleanup steps."
[tasks.clean]
category = "Steps / Cleanup"
extend = "default::clean"
private = false
[tasks.prepare]
category = "Flows / Basic"
description = "Prepare the working directory for commit."
dependencies = [
"pre-prepare",
"format",
"post-prepare"
]
[tasks.pre-prepare]
private = true
description = "Customization point for additional preparation steps."
[tasks.post-prepare]
private = true
description = "Customization point for additional preparation steps."
[tasks.format]
category = "Steps / Prepare"
extend = "default::format"
private = false
condition = { env_not_set = [ "SCMF_DISABLE_FORMAT" ] }
[tasks.ci]
category = "Flows / Top"
description = "Audit, verify and generate the documentation in continuous integration builds."
dependencies = [
"pre-ci",
"verify",
"audit",
"doc",
"post-ci"
]
[tasks.pre-ci]
private = true
description = "Customization point for additional verification steps."
[tasks.post-ci]
private = true
description = "Customization point for additional verification steps."
[tasks.audit]
category = "Flows / Basic"
description = "Audit the source files for correctness."
dependencies = [
"pre-audit",
"check-format",
"clippy",
"todox",
"coverage-annotations",
"outdated",
"post-audit",
]
[tasks.pre-audit]
private = true
description = "Customization point for additional audit steps."
[tasks.post-audit]
private = true
description = "Customization point for additional audit steps."
[tasks.check-format]
category = "Steps / Audit"
extend = "default::check-format"
private = false
condition = { env_not_set = [ "SCMF_DISABLE_CHECK_FORMAT" ] }
[tasks.clippy]
category = "Steps / Audit"
extend = "default::clippy"
private = false
condition = { env_not_set = [ "SCMF_DISABLE_CLIPPY" ] }
[tasks.outdated]
category = "Steps / Audit"
extend = "default::outdated"
private = false
condition = { env_not_set = [ "SCMF_DISABLE_OUTDATED" ] }
[tasks.todox] # ALLOW TODOX
category = "Steps / Audit"
description = "Verify the code does not contain leftover TODOX." # ALLOW TODOX
install_crate = "cargo-todox" # ALLOW TODOX
command = "cargo"
args = ["todox"] # ALLOW TODOX
condition = { env_not_set = [ "SCMF_DISABLE_TODOX" ] } # ALLOW TODOX
[tasks.verify]
category = "Flows / Basic"
description = "Build and test the code."
dependencies = [
"pre-verify",
"build",
"test",
"coverage",
"post-verify",
]
[tasks.pre-verify]
private = true
description = "Customization point for additional verification steps."
[tasks.post-verify]
private = true
description = "Customization point for additional verification steps."
[tasks.build]
category = "Steps / Verify"
extend = "default::build"
private = false
[tasks.test]
category = "Steps / Verify"
description = "Run tests."
extend = "default::test"
private = false
[tasks.coverage]
category = "Steps / Verify"
extend = "default::coverage"
private = false
[tasks."default::coverage-kcov"]
env = { "CARGO_MAKE_KCOV_INCLUDE_PATTERN" = "${CARGO_MAKE_WORKING_DIRECTORY}/src/,${CARGO_MAKE_WORKING_DIRECTORY}/tests/" }
[tasks.coverage-annotations]
category = "Steps / Verify"
description = "Verify the coverage annotations in the code."
install_crate = "cargo-coverage-annotations"
command = "cargo"
args = ["coverage-annotations"]
condition = { env_not_set = [ "SCMF_DISABLE_COVERAGE_ANNOTATIONS" ] }
[tasks.doc]
category = "Steps / Doc"
extend = "default::docs"
private = false