forked from CosmWasm/cosmwasm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
249 lines (206 loc) · 8.4 KB
/
Taskfile.yml
File metadata and controls
249 lines (206 loc) · 8.4 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
version: '3'
silent: true
vars:
COSMWASM_CHECK_VERSION: 3.0.2
TOOLCHAIN: +1.82.0
tasks:
all:
desc: Runs all checks
summary: |
Runs all viable checks for cosmwasm.
Execute this task before pushing any changes.
This task takes a significant amount of time to complete.
cmds:
- task: clean-all
- task: build
- task: test
- task: check-contracts
- task: update-schemas
build:
desc: Build all crates
cmds:
- cmd: cargo {{.TOOLCHAIN}} build --workspace
build-cw-schema:
desc: Build cw-schema
cmds:
- cmd: cargo {{.TOOLCHAIN}} build -p cw-schema
check-contracts:
desc: Performs checks for all contracts
cmds:
- task: install-cosmwasm-check
- cmd: ./devtools/check-contracts.sh
check-contracts-parallel:
desc: Performs checks in parallel for all contracts
cmds:
- task: install-cosmwasm-check
- cmd: ./devtools/check-contracts.sh parallel
check-contracts-fast:
desc: Performs checks for all contracts without reinstalling cosmwasm-check tool
cmds:
- cmd: ./devtools/check-contracts.sh
check-contracts-fast-parallel:
desc: Performs checks in parallel for all contracts without reinstalling cosmwasm-check tool
cmds:
- cmd: ./devtools/check-contracts.sh parallel
clean:
desc: Removes compiled artifacts for crates
cmds:
- cmd: cargo clean
clean-all:
desc: Removes all compiled artifacts (crates and contracts)
cmds:
- task: clean
- cmd: ./devtools/clean-contracts.sh
cov:
desc: Generates code coverage report for all crates in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --workspace --no-cfg-coverage
cov-cosmwasm-check:
desc: Generates code coverage report for cosmwasm-check in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-check --no-cfg-coverage
cov-badge-cosmwasm-check:
desc: Generates the detailed code coverage badge for cosmwasm-check
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-check --json --summary-only | coverio
cov-cosmwasm-core:
desc: Generates code coverage report for cosmwasm-core in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-core --no-cfg-coverage
cov-badge-cosmwasm-core:
desc: Generates the detailed code coverage badge for cosmwasm-core
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-core --json --summary-only | coverio
cov-cosmwasm-crypto:
desc: Generates code coverage report for cosmwasm-crypto in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-crypto --no-cfg-coverage
cov-badge-cosmwasm-crypto:
desc: Generates the detailed code coverage badge for cosmwasm-crypto
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-crypto --json --summary-only | coverio
cov-cw-schema:
desc: Generates code coverage report for cw-schema in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cw-schema --no-cfg-coverage
cov-badge-cw-schema:
desc: Generates the detailed code coverage badge for cw-schema
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cw-schema --json --summary-only | coverio
cov-cw-schema-derive:
desc: Generates code coverage report for cw-schema-derive in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cw-schema-derive --no-cfg-coverage
cov-badge-cw-schema-derive:
desc: Generates the detailed code coverage badge for cw-schema-derive
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cw-schema-derive --json --summary-only | coverio
cov-cosmwasm-derive:
desc: Generates code coverage report for cosmwasm-derive in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-derive --no-cfg-coverage
cov-badge-cosmwasm-derive:
desc: Generates the detailed code coverage badge for cosmwasm-derive
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-derive --json --summary-only | coverio
cov-go-gen:
desc: Generates code coverage report for go-gen in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p go-gen --no-cfg-coverage
cov-badge-go-gen:
desc: Generates the detailed code coverage badge for go-gen
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p go-gen --json --summary-only | coverio
cov-cosmwasm-schema:
desc: Generates code coverage report for cosmwasm-schema in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-schema --no-cfg-coverage
cov-badge-cosmwasm-schema:
desc: Generates the detailed code coverage badge for cosmwasm-schema
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-schema --json --summary-only | coverio
cov-cosmwasm-schema-derive:
desc: Generates code coverage report for cosmwasm-schema-derive in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-schema-derive --no-cfg-coverage
cov-badge-cosmwasm-schema-derive:
desc: Generates the detailed code coverage badge for cosmwasm-schema-derive
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-schema-derive --json --summary-only | coverio
cov-cosmwasm-std:
desc: Generates code coverage report for cosmwasm-std in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-std --no-cfg-coverage
cov-badge-cosmwasm-std:
desc: Generates the detailed code coverage badge for cosmwasm-std
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-std --json --summary-only | coverio
cov-cosmwasm-vm:
desc: Generates code coverage report for cosmwasm-vm in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-vm --no-cfg-coverage
cov-badge-cosmwasm-vm:
desc: Generates the detailed code coverage badge for cosmwasm-vm
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-vm --json --summary-only | coverio
cov-cosmwasm-vm-derive:
desc: Generates code coverage report for cosmwasm-vm-derive in text format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-vm-derive --no-cfg-coverage
cov-badge-cosmwasm-vm-derive:
desc: Generates the detailed code coverage badge for cosmwasm-vm-derive
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-vm-derive --json --summary-only | coverio
install-cosmwasm-check:
desc: Installs cosmwasm-check tool (released version and currently developed version)
cmds:
# Install recently released cosmwasm-check and rename it to cosmwasm-check-released
- cmd: cargo {{.TOOLCHAIN}} install cosmwasm-check@{{.COSMWASM_CHECK_VERSION}} --locked --force
- cmd: mv ~/.cargo/bin/cosmwasm-check ~/.cargo/bin/cosmwasm-check-released
# Install currently developed version of cosmwasm-check
- cmd: cargo {{.TOOLCHAIN}} install --path ./packages/check --locked --force
test:
desc: Runs all tests
cmds:
- cmd: cargo {{.TOOLCHAIN}} test --workspace
testn:
desc: Runs all tests using nextest
cmds:
- cmd: cargo {{.TOOLCHAIN}} nextest run --workspace
test-cosmwasm-core:
desc: Runs tests for cosmwasm-core
cmds:
- cmd: cargo {{.TOOLCHAIN}} test -p cosmwasm-core
test-cw-schema:
desc: Runs tests for cw-schema
cmds:
- cmd: cargo {{.TOOLCHAIN}} test -p cw-schema
update-schemas:
desc: Updates schemas for all contracts
cmds:
- cmd: ./devtools/update-schemas.sh