@@ -22,14 +22,10 @@ tasks:
2222 cmds :
2323 - cmd : cargo {{.TOOLCHAIN}} build --workspace
2424
25- install-cosmwasm-check :
26- desc : Installs cosmwasm-check tool (released version and currently developed version)
25+ build-cw-schema :
26+ desc : Build cw-schema
2727 cmds :
28- # Install recently released cosmwasm-check and rename it to cosmwasm-check-release
29- - cmd : cargo {{.TOOLCHAIN}} install cosmwasm-check@{{.COSMWASM_CHECK_VERSION}} --locked --force
30- - cmd : mv ~/.cargo/bin/cosmwasm-check ~/.cargo/bin/cosmwasm-check-release
31- # Install currently developed version of cosmwasm-check
32- - cmd : cargo {{.TOOLCHAIN}} install --path ./packages/check --locked --force
28+ - cmd : cargo {{.TOOLCHAIN}} build -p cw-schema
3329
3430 check-contracts :
3531 desc : Performs checks for all contracts
@@ -54,17 +50,186 @@ tasks:
5450 - cmd : ./devtools/check-contracts.sh parallel
5551
5652 clean :
57- desc : Removes all compiled artifacts
53+ desc : Removes compiled artifacts for crates
5854 cmds :
5955 - cmd : cargo clean
56+
57+ clean-all :
58+ desc : Removes all compiled artifacts (crates and contracts)
59+ cmds :
60+ - task : clean
6061 - cmd : ./devtools/clean-contracts.sh
6162
63+ cov :
64+ desc : Generates code coverage report for all crates in text format
65+ cmds :
66+ - cmd : cargo llvm-cov clean
67+ - cmd : cargo {{.TOOLCHAIN}} llvm-cov --workspace --no-cfg-coverage
68+
69+ cov-cosmwasm-check :
70+ desc : Generates code coverage report for cosmwasm-check in text format
71+ cmds :
72+ - cmd : cargo llvm-cov clean
73+ - cmd : cargo {{.TOOLCHAIN}} llvm-cov -p cosmwasm-check --no-cfg-coverage
74+
75+ cov-badge-cosmwasm-check :
76+ desc : Generates the detailed code coverage badge for cosmwasm-check
77+ cmds :
78+ - cmd : cargo llvm-cov clean
79+ - cmd : cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p cosmwasm-check --json --summary-only | coverio
80+
81+ cov-cosmwasm-core :
82+ desc : Generates code coverage report for cosmwasm-core in text format
83+ cmds :
84+ - cmd : cargo llvm-cov clean
85+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-core --no-cfg-coverage
86+
87+ cov-badge-cosmwasm-core :
88+ desc : Generates the detailed code coverage badge for cosmwasm-core
89+ cmds :
90+ - cmd : cargo llvm-cov clean
91+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-core --json --summary-only | coverio
92+
93+ cov-cosmwasm-crypto :
94+ desc : Generates code coverage report for cosmwasm-crypto in text format
95+ cmds :
96+ - cmd : cargo llvm-cov clean
97+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-crypto --no-cfg-coverage
98+
99+ cov-badge-cosmwasm-crypto :
100+ desc : Generates the detailed code coverage badge for cosmwasm-crypto
101+ cmds :
102+ - cmd : cargo llvm-cov clean
103+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-crypto --json --summary-only | coverio
104+
105+ cov-cw-schema :
106+ desc : Generates code coverage report for cw-schema in text format
107+ cmds :
108+ - cmd : cargo llvm-cov clean
109+ - cmd : cargo +1.82.0 llvm-cov -p cw-schema --no-cfg-coverage
110+
111+ cov-badge-cw-schema :
112+ desc : Generates the detailed code coverage badge for cw-schema
113+ cmds :
114+ - cmd : cargo llvm-cov clean
115+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cw-schema --json --summary-only | coverio
116+
117+ cov-cw-schema-derive :
118+ desc : Generates code coverage report for cw-schema-derive in text format
119+ cmds :
120+ - cmd : cargo llvm-cov clean
121+ - cmd : cargo +1.82.0 llvm-cov -p cw-schema-derive --no-cfg-coverage
122+
123+ cov-badge-cw-schema-derive :
124+ desc : Generates the detailed code coverage badge for cw-schema-derive
125+ cmds :
126+ - cmd : cargo llvm-cov clean
127+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cw-schema-derive --json --summary-only | coverio
128+
129+ cov-cosmwasm-derive :
130+ desc : Generates code coverage report for cosmwasm-derive in text format
131+ cmds :
132+ - cmd : cargo llvm-cov clean
133+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-derive --no-cfg-coverage
134+
135+ cov-badge-cosmwasm-derive :
136+ desc : Generates the detailed code coverage badge for cosmwasm-derive
137+ cmds :
138+ - cmd : cargo llvm-cov clean
139+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-derive --json --summary-only | coverio
140+
141+ cov-go-gen :
142+ desc : Generates code coverage report for go-gen in text format
143+ cmds :
144+ - cmd : cargo llvm-cov clean
145+ - cmd : cargo {{.TOOLCHAIN}} llvm-cov -p go-gen --no-cfg-coverage
146+
147+ cov-badge-go-gen :
148+ desc : Generates the detailed code coverage badge for go-gen
149+ cmds :
150+ - cmd : cargo llvm-cov clean
151+ - cmd : cargo {{.TOOLCHAIN}} llvm-cov --no-cfg-coverage -p go-gen --json --summary-only | coverio
152+
153+ cov-cosmwasm-schema :
154+ desc : Generates code coverage report for cosmwasm-schema in text format
155+ cmds :
156+ - cmd : cargo llvm-cov clean
157+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-schema --no-cfg-coverage
158+
159+ cov-badge-cosmwasm-schema :
160+ desc : Generates the detailed code coverage badge for cosmwasm-schema
161+ cmds :
162+ - cmd : cargo llvm-cov clean
163+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-schema --json --summary-only | coverio
164+
165+ cov-cosmwasm-schema-derive :
166+ desc : Generates code coverage report for cosmwasm-schema-derive in text format
167+ cmds :
168+ - cmd : cargo llvm-cov clean
169+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-schema-derive --no-cfg-coverage
170+
171+ cov-badge-cosmwasm-schema-derive :
172+ desc : Generates the detailed code coverage badge for cosmwasm-schema-derive
173+ cmds :
174+ - cmd : cargo llvm-cov clean
175+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-schema-derive --json --summary-only | coverio
176+
177+ cov-cosmwasm-std :
178+ desc : Generates code coverage report for cosmwasm-std in text format
179+ cmds :
180+ - cmd : cargo llvm-cov clean
181+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-std --no-cfg-coverage
182+
183+ cov-badge-cosmwasm-std :
184+ desc : Generates the detailed code coverage badge for cosmwasm-std
185+ cmds :
186+ - cmd : cargo llvm-cov clean
187+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-std --json --summary-only | coverio
188+
189+ cov-cosmwasm-vm :
190+ desc : Generates code coverage report for cosmwasm-vm in text format
191+ cmds :
192+ - cmd : cargo llvm-cov clean
193+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-vm --no-cfg-coverage
194+
195+ cov-badge-cosmwasm-vm :
196+ desc : Generates the detailed code coverage badge for cosmwasm-vm
197+ cmds :
198+ - cmd : cargo llvm-cov clean
199+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-vm --json --summary-only | coverio
200+
201+ cov-cosmwasm-vm-derive :
202+ desc : Generates code coverage report for cosmwasm-vm-derive in text format
203+ cmds :
204+ - cmd : cargo llvm-cov clean
205+ - cmd : cargo +1.82.0 llvm-cov -p cosmwasm-vm-derive --no-cfg-coverage
206+
207+ cov-badge-cosmwasm-vm-derive :
208+ desc : Generates the detailed code coverage badge for cosmwasm-vm-derive
209+ cmds :
210+ - cmd : cargo llvm-cov clean
211+ - cmd : cargo +1.82.0 llvm-cov --no-cfg-coverage -p cosmwasm-vm-derive --json --summary-only | coverio
212+
213+ install-cosmwasm-check :
214+ desc : Installs cosmwasm-check tool (released version and currently developed version)
215+ cmds :
216+ # Install recently released cosmwasm-check and rename it to cosmwasm-check-release
217+ - cmd : cargo {{.TOOLCHAIN}} install cosmwasm-check@{{.COSMWASM_CHECK_VERSION}} --locked --force
218+ - cmd : mv ~/.cargo/bin/cosmwasm-check ~/.cargo/bin/cosmwasm-check-release
219+ # Install currently developed version of cosmwasm-check
220+ - cmd : cargo {{.TOOLCHAIN}} install --path ./packages/check --locked --force
221+
62222 test :
63223 desc : Runs all tests
64224 cmds :
65- - task : test-cosmwasm-core
225+ - cmd : cargo {{.TOOLCHAIN}} test --workspace
66226
67227 test-cosmwasm-core :
68228 desc : Runs tests for cosmwasm-core
69229 cmds :
70230 - cmd : cargo {{.TOOLCHAIN}} test -p cosmwasm-core
231+
232+ test-cw-schema :
233+ desc : Runs tests for cw-schema
234+ cmds :
235+ - cmd : cargo {{.TOOLCHAIN}} test -p cw-schema
0 commit comments