@@ -72,7 +72,7 @@ workflow:
72
72
image : " ${CI_IMAGE}"
73
73
before_script :
74
74
- *rust-info-script
75
- - ./scripts/. ci/pre_cache.sh
75
+ - ./scripts/ci/pre_cache.sh
76
76
- sccache -s
77
77
interruptible : true
78
78
tags :
@@ -119,7 +119,7 @@ spellcheck:
119
119
<< : *test-refs
120
120
script :
121
121
- cargo spellcheck check -vvvv --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive .
122
- - cargo spellcheck check -vvvv --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive examples/
122
+ - cargo spellcheck check -vvvv --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive ./ examples/
123
123
allow_failure : true
124
124
125
125
fmt :
129
129
script :
130
130
- cargo fmt --verbose --all -- --check
131
131
# For the UI tests we need to disable the license check
132
- - cargo fmt --verbose --all -- --check --config=license_template_path="" crates/lang/tests/ui/contract/{pass,fail}/*.rs
133
- - cargo fmt --verbose --all -- --check --config=license_template_path="" crates/lang/tests/ui/trait_def/{pass,fail}/*.rs
132
+ - cargo fmt --verbose --all -- --check --config=license_template_path="" ./ crates/lang/tests/ui/contract/{pass,fail}/*.rs
133
+ - cargo fmt --verbose --all -- --check --config=license_template_path="" ./ crates/lang/tests/ui/trait_def/{pass,fail}/*.rs
134
134
allow_failure : true
135
135
136
136
examples-fmt :
@@ -143,7 +143,7 @@ examples-fmt:
143
143
cargo fmt --verbose --manifest-path ${example}/Cargo.toml -- --check --config=license_template_path="";
144
144
done
145
145
- for contract in ${DELEGATOR_SUBCONTRACTS}; do
146
- cargo fmt --verbose --manifest-path examples/delegator/${contract}/Cargo.toml -- --check --config=license_template_path="";
146
+ cargo fmt --verbose --manifest-path ./ examples/delegator/${contract}/Cargo.toml -- --check --config=license_template_path="";
147
147
done
148
148
allow_failure : true
149
149
@@ -153,7 +153,7 @@ clippy-std:
153
153
<< : *test-refs
154
154
script :
155
155
- for crate in ${ALL_CRATES}; do
156
- cargo clippy --verbose --all-targets --all-features --manifest-path crates/${crate}/Cargo.toml -- -D warnings;
156
+ cargo clippy --verbose --all-targets --all-features --manifest-path ./ crates/${crate}/Cargo.toml -- -D warnings;
157
157
done
158
158
159
159
clippy-wasm :
@@ -162,7 +162,7 @@ clippy-wasm:
162
162
<< : *test-refs
163
163
script :
164
164
- for crate in ${ALSO_WASM_CRATES}; do
165
- cargo clippy --verbose --no-default-features --manifest-path crates/${crate}/Cargo.toml --target wasm32-unknown-unknown -- -D warnings;
165
+ cargo clippy --verbose --no-default-features --manifest-path ./ crates/${crate}/Cargo.toml --target wasm32-unknown-unknown -- -D warnings;
166
166
done
167
167
allow_failure : true
168
168
@@ -175,7 +175,7 @@ examples-clippy-std:
175
175
cargo clippy --verbose --all-targets --manifest-path ${example}/Cargo.toml -- -D warnings;
176
176
done
177
177
- for contract in ${DELEGATOR_SUBCONTRACTS}; do
178
- cargo clippy --verbose --all-targets --manifest-path examples/delegator/${contract}/Cargo.toml -- -D warnings;
178
+ cargo clippy --verbose --all-targets --manifest-path ./ examples/delegator/${contract}/Cargo.toml -- -D warnings;
179
179
done
180
180
allow_failure : true
181
181
@@ -188,7 +188,7 @@ examples-clippy-wasm:
188
188
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
189
189
done
190
190
- for contract in ${DELEGATOR_SUBCONTRACTS}; do
191
- cargo clippy --verbose --manifest-path examples/delegator/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
191
+ cargo clippy --verbose --manifest-path ./ examples/delegator/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
192
192
done
193
193
allow_failure : true
194
194
@@ -201,7 +201,7 @@ check-std:
201
201
<< : *test-refs
202
202
script :
203
203
- for crate in ${ALL_CRATES}; do
204
- cargo check --verbose --all-features --manifest-path crates/${crate}/Cargo.toml;
204
+ cargo check --verbose --all-features --manifest-path ./ crates/${crate}/Cargo.toml;
205
205
done
206
206
207
207
check-wasm :
@@ -210,7 +210,7 @@ check-wasm:
210
210
<< : *test-refs
211
211
script :
212
212
- for crate in ${ALSO_WASM_CRATES}; do
213
- cargo check --verbose --no-default-features --target wasm32-unknown-unknown --manifest-path crates/${crate}/Cargo.toml;
213
+ cargo check --verbose --no-default-features --target wasm32-unknown-unknown --manifest-path ./ crates/${crate}/Cargo.toml;
214
214
done
215
215
216
216
@@ -225,7 +225,7 @@ build-std:
225
225
artifacts : false
226
226
script :
227
227
- for crate in ${ALL_CRATES}; do
228
- cargo build --verbose --all-features --release --manifest-path crates/${crate}/Cargo.toml;
228
+ cargo build --verbose --all-features --release --manifest-path ./ crates/${crate}/Cargo.toml;
229
229
done
230
230
231
231
build-wasm :
@@ -237,7 +237,7 @@ build-wasm:
237
237
artifacts : false
238
238
script :
239
239
- for crate in ${ALSO_WASM_CRATES}; do
240
- cargo build --verbose --no-default-features --release --target wasm32-unknown-unknown --manifest-path crates/${crate}/Cargo.toml;
240
+ cargo build --verbose --no-default-features --release --target wasm32-unknown-unknown --manifest-path ./ crates/${crate}/Cargo.toml;
241
241
done
242
242
243
243
test :
@@ -338,7 +338,7 @@ examples-test:
338
338
cargo test --verbose --manifest-path ${example}/Cargo.toml;
339
339
done
340
340
- for contract in ${DELEGATOR_SUBCONTRACTS}; do
341
- cargo test --verbose --manifest-path examples/delegator/${contract}/Cargo.toml;
341
+ cargo test --verbose --manifest-path ./ examples/delegator/${contract}/Cargo.toml;
342
342
done
343
343
344
344
examples-contract-build :
@@ -352,7 +352,7 @@ examples-contract-build:
352
352
cargo contract build &&
353
353
popd;
354
354
done
355
- - cd examples/delegator/ && ./build-all.sh
355
+ - cd ./ examples/delegator/ && ./build-all.sh
356
356
357
357
examples-docs :
358
358
stage : examples
@@ -369,7 +369,7 @@ examples-docs:
369
369
cargo doc --manifest-path ${example}/Cargo.toml --document-private-items --verbose --no-deps;
370
370
done
371
371
- for contract in ${DELEGATOR_SUBCONTRACTS}; do
372
- cargo doc --manifest-path examples/delegator/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
372
+ cargo doc --manifest-path ./ examples/delegator/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
373
373
done
374
374
375
375
@@ -386,7 +386,7 @@ ink-waterfall:
386
386
# The `ink-waterfall` project id in GitLab
387
387
DWNSTRM_ID : 409
388
388
script :
389
- - ./scripts/. ci/trigger_pipeline.sh
389
+ - ./scripts/ci/trigger_pipeline.sh
390
390
allow_failure : true
391
391
392
392
@@ -423,8 +423,8 @@ publish-docs:
423
423
- git fetch origin gh-pages
424
424
# saving README and docs
425
425
- cp -r ./crate-docs/ /tmp/doc/
426
- - cp README.md /tmp/doc/
427
- - cp -r .images/ /tmp/doc/
426
+ - cp ./ README.md /tmp/doc/
427
+ - cp -r ./. images/ /tmp/doc/
428
428
- git checkout gh-pages
429
429
- mv _config.yml /tmp/doc/
430
430
# remove everything and restore generated docs, README and Jekyll config
@@ -461,9 +461,9 @@ fuzz-tests:
461
461
# We fuzz-test only crates which possess the `ink-fuzz-tests` feature
462
462
- all_tests_passed=0
463
463
- for crate in ${ALL_CRATES}; do
464
- if grep "ink-fuzz-tests =" crates/${crate}/Cargo.toml;
464
+ if grep "ink-fuzz-tests =" ./ crates/${crate}/Cargo.toml;
465
465
then
466
- cargo test --verbose --features ink-fuzz-tests --manifest-path crates/${crate}/Cargo.toml --no-fail-fast -- fuzz_ || exit_code=$?;
466
+ cargo test --verbose --features ink-fuzz-tests --manifest-path ./ crates/${crate}/Cargo.toml --no-fail-fast -- fuzz_ || exit_code=$?;
467
467
all_tests_passed=$(( all_tests_passed | exit_code ));
468
468
fi
469
469
done
0 commit comments