-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathTaskfile.yml
More file actions
400 lines (331 loc) · 11.8 KB
/
Taskfile.yml
File metadata and controls
400 lines (331 loc) · 11.8 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
version: '3'
silent: true
tasks:
all:
desc: Runs all checks
summary: |
Runs all viable checks for MultiTest.
Execute this task before pushing any changes.
This task takes a significant amount of time to complete.
cmds:
- task: clean
- task: build
- task: clippy
- task: test
- task: hack
build:
desc: Runs all building variants
cmds:
- task: build-all-features
- task: build-default-features
- task: build-no-default-features
- task: build-1-1
- task: build-1-2
- task: build-1-3
- task: build-1-4
- task: build-2-0
- task: build-2-1
- task: build-2-2
- task: build-3-0
- task: build-stargate
- task: build-staking
- task: build-locked
- task: build-1-81-all-features
- task: build-1-81-default-features
- task: build-1-81-no-default-features
build-all-features:
desc: Builds in debug mode with all features enabled
cmds:
- cmd: cargo +stable build --all-features
build-default-features:
desc: Builds in debug mode with default features enabled
cmds:
- cmd: cargo +stable build
build-no-default-features:
desc: Builds in debug mode without default features
cmds:
- cmd: cargo +stable build --no-default-features
build-1-1:
desc: Builds the library in debug mode with "cosmwasm_1_1" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_1_1
build-1-2:
desc: Builds the library in debug mode with "cosmwasm_1_2" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_1_2
build-1-3:
desc: Builds the library in debug mode with "cosmwasm_1_3" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_1_3
build-1-4:
desc: Builds the library in debug mode with "cosmwasm_1_4" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_1_4
build-2-0:
desc: Builds the library in debug mode with "cosmwasm_2_0" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_2_0
build-2-1:
desc: Builds the library in debug mode with "cosmwasm_2_1" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_2_1
build-2-2:
desc: Builds the library in debug mode with "cosmwasm_2_2" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_2_2
build-3-0:
desc: Builds the library in debug mode with "cosmwasm_3_0" feature enabled
cmds:
- cmd: cargo +stable build --features cosmwasm_3_0
build-stargate:
desc: Builds the library in debug mode with "stargate" feature enabled
cmds:
- cmd: cargo +stable build --features stargate
build-staking:
desc: Builds the library in debug mode with "staking" feature enabled
cmds:
- cmd: cargo +stable build --features staking
build-locked:
desc: Builds in debug mode with all features enabled and locked dependencies
cmds:
- cmd: cargo build --locked --all-features
build-1-81-all-features:
desc: Builds in debug mode with all features enabled and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu build --all-features
build-1-81-default-features:
desc: Builds in debug mode with default features and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu build
build-1-81-no-default-features:
desc: Builds in debug mode without default features and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu build --no-default-features
clean:
desc: Removes all compiled artifacts
cmds:
- cmd: cargo clean
clippy:
desc: Runs all clippy variants
cmds:
- task: clippy-all-features
- task: clippy-default-features
- task: clippy-no-default-features
- task: clippy-1-1
- task: clippy-1-2
- task: clippy-1-3
- task: clippy-1-4
- task: clippy-2-0
- task: clippy-2-1
- task: clippy-2-2
- task: clippy-3-0
- task: clippy-stargate
- task: clippy-staking
- task: clippy-1-81-all-features
- task: clippy-1-81-default-features
- task: clippy-1-81-no-default-features
clippy-all-features:
desc: Runs clippy with all features enabled
cmds:
- cmd: cargo +stable clippy --all-targets --all-features
clippy-default-features:
desc: Runs clippy with default features
cmds:
- cmd: cargo +stable clippy --all-targets
clippy-no-default-features:
desc: Runs clippy without default features
cmds:
- cmd: cargo +stable clippy --all-targets --no-default-features
clippy-1-1:
desc: Runs clippy with "cosmwasm_1_1" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_1_1
clippy-1-2:
desc: Runs clippy with "cosmwasm_1_2" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_1_2
clippy-1-3:
desc: Runs clippy with "cosmwasm_1_3" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_1_3
clippy-1-4:
desc: Runs clippy with "cosmwasm_1_4" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_1_4
clippy-2-0:
desc: Runs clippy with "cosmwasm_2_0" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_2_0
clippy-2-1:
desc: Runs clippy with "cosmwasm_2_1" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_2_1
clippy-2-2:
desc: Runs clippy with "cosmwasm_2_2" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_2_2
clippy-3-0:
desc: Runs clippy with "cosmwasm_3_0" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features cosmwasm_3_0
clippy-stargate:
desc: Runs clippy with "stargate" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features stargate
clippy-staking:
desc: Runs clippy with "staking" feature enabled
cmds:
- cmd: cargo +stable clippy --all-targets --features staking
clippy-1-81-all-features:
desc: Runs clippy with all features enabled and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu clippy --all-targets --all-features -- -D warnings
clippy-1-81-default-features:
desc: Runs clippy with default features and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu clippy --all-targets -- -D warnings
clippy-1-81-no-default-features:
desc: Runs clippy without default features and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu clippy --all-targets --no-default-features -- -D warnings
cov:
desc: Generates the code coverage report in text format printed to stdout
cmds:
- cmd: cargo +stable llvm-cov clean
- cmd: cargo +stable llvm-cov --no-cfg-coverage --all-features
cov-html:
desc: Generates the code coverage report in HTML format and opens it in a browser
cmds:
- cmd: cargo +stable llvm-cov clean
- cmd: cargo +stable llvm-cov --no-cfg-coverage --all-features --html --open
cov-badge:
desc: Generates the detailed code coverage badge
cmds:
- cmd: cargo +stable llvm-cov clean
- cmd: cargo +stable llvm-cov --no-cfg-coverage --all-features --json --summary-only | coverio
doc:
desc: Generates documentation with all features enabled
cmds:
- cmd: cargo +stable doc --no-deps --all-features
doc-open:
desc: Generates documentation with all features enabled and opens it in a browser
cmds:
- cmd: cargo +stable doc --no-deps --open --all-features
doc-priv:
desc: Generates documentation with private items and all features enabled
cmds:
- cmd: cargo +stable doc --no-deps --document-private-items --all-features
doc-priv-open:
desc: Generates documentation with private items and all features enabled and opens it in a browser
cmds:
- cmd: cargo +stable doc --no-deps --document-private-items --open --all-features
fmt:
desc: Runs the code formatter
cmds:
- cmd: cargo fmt
test:
desc: Runs all test variants
cmds:
- task: test-all-features
- task: test-default-features
- task: test-no-default-features
- task: test-1-1
- task: test-1-2
- task: test-1-3
- task: test-1-4
- task: test-2-0
- task: test-2-1
- task: test-2-2
- task: test-3-0
- task: test-stargate
- task: test-staking
- task: test-max
- task: test-1-81-all-features
- task: test-1-81-default-features
- task: test-1-81-no-default-features
test-all-features:
desc: Runs all tests in debug mode with all features enabled
cmds:
- cmd: cargo +stable test --all-features
test-default-features:
desc: Runs all tests in debug mode with default features
cmds:
- cmd: cargo +stable test
test-no-default-features:
desc: Runs all tests in debug mode without default features
cmds:
- cmd: cargo +stable test --no-default-features
test-1-1:
desc: Runs all tests in debug mode with "cosmwasm_1_1" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_1_1
test-1-2:
desc: Runs all tests in debug mode with "cosmwasm_1_2" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_1_2
test-1-3:
desc: Runs all tests in debug mode with "cosmwasm_1_3" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_1_3
test-1-4:
desc: Runs all tests in debug mode with "cosmwasm_1_4" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_1_4
test-2-0:
desc: Runs all tests in debug mode with "cosmwasm_2_0" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_2_0
test-2-1:
desc: Runs all tests in debug mode with "cosmwasm_2_1" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_2_1
test-2-2:
desc: Runs all tests in debug mode with "cosmwasm_2_2" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_2_2
test-3-0:
desc: Runs all tests in debug mode with "cosmwasm_3_0" feature enabled
cmds:
- cmd: cargo +stable test --features cosmwasm_3_0
test-stargate:
desc: Runs all tests in debug mode with "stargate" feature enabled
cmds:
- cmd: cargo +stable test --features stargate
test-staking:
desc: Runs all tests in debug mode with "staking" feature enabled
cmds:
- cmd: cargo +stable test --features staking
test-max:
desc: Runs tests with maximal versions like in Circle CI
cmds:
- cmd: cargo test --locked --all-features
test-1-81-all-features:
desc: Runs tests in debug mode with all features enabled and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu test --all-features
test-1-81-default-features:
desc: Runs tests in debug mode with all features enabled and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu test
test-1-81-no-default-features:
desc: Runs tests in debug mode without default features and Rust version 1.81
cmds:
- cmd: cargo +1.81.0-x86_64-unknown-linux-gnu test --no-default-features
hack:
desc: Runs all checks based on all feature combinations
cmds:
- task: hack-build
- task: hack-clippy
- task: hack-test
hack-build:
desc: Builds in debug mode using all feature combinations
cmds:
- cmd: cargo +stable hack build --feature-powerset
hack-clippy:
desc: Runs clippy using all feature combinations
cmds:
- cmd: cargo +stable hack clippy --feature-powerset
hack-test:
desc: Runs tests using all feature combinations
cmds:
- cmd: cargo +stable hack test --feature-powerset