@@ -95,7 +95,7 @@ spellcheck:
9595 << : *test-refs
9696 script :
9797 - cargo spellcheck check -v --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive .
98- - cargo spellcheck check -v --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive ./examples /*
98+ - cargo spellcheck check -v --cfg=.config/cargo_spellcheck.toml --checkers hunspell --code 1 -- recursive ./integration-tests /*
9999 allow_failure : true
100100
101101fmt :
@@ -115,23 +115,23 @@ examples-fmt:
115115 << : *test-refs
116116 script :
117117 # Note that we disable the license header check for the examples, since they are unlicensed.
118- - for example in examples /*/; do
119- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
120- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
118+ - for example in integration-tests /*/; do
119+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
120+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
121121 cargo +nightly fmt --verbose --manifest-path ${example}/Cargo.toml -- --check;
122122 done
123123 - for contract in ${DELEGATOR_SUBCONTRACTS}; do
124- cargo +nightly fmt --verbose --manifest-path ./examples /delegator/${contract}/Cargo.toml -- --check;
124+ cargo +nightly fmt --verbose --manifest-path ./integration-tests /delegator/${contract}/Cargo.toml -- --check;
125125 done
126126 - for contract in ${UPGRADEABLE_CONTRACTS}; do
127- cargo +nightly fmt --verbose --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml -- --check;
127+ cargo +nightly fmt --verbose --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml -- --check;
128128 done
129129 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
130- cargo +nightly fmt --verbose --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml -- --check;
130+ cargo +nightly fmt --verbose --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml -- --check;
131131 done
132- - cargo +nightly fmt --verbose --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml -- --check
132+ - cargo +nightly fmt --verbose --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml -- --check
133133 # This file is not a part of the cargo project, so it wouldn't be formatted the usual way
134- - rustfmt +nightly --verbose --check ./examples /psp22-extension/runtime/psp22-extension-example.rs
134+ - rustfmt +nightly --verbose --check ./integration-tests /psp22-extension/runtime/psp22-extension-example.rs
135135 allow_failure : true
136136
137137clippy-std :
@@ -158,43 +158,43 @@ examples-clippy-std:
158158 << : *docker-env
159159 << : *test-refs
160160 script :
161- - for example in examples /*/; do
162- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
163- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
161+ - for example in integration-tests /*/; do
162+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
163+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
164164 cargo clippy --verbose --all-targets --manifest-path ${example}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
165165 done
166166 - for contract in ${DELEGATOR_SUBCONTRACTS}; do
167- cargo clippy --verbose --all-targets --manifest-path ./examples /delegator/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
167+ cargo clippy --verbose --all-targets --manifest-path ./integration-tests /delegator/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
168168 done
169169 - for contract in ${UPGRADEABLE_CONTRACTS}; do
170- cargo clippy --verbose --all-targets --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
170+ cargo clippy --verbose --all-targets --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
171171 done
172172 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
173- cargo clippy --verbose --all-targets --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
173+ cargo clippy --verbose --all-targets --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
174174 done
175- - cargo clippy --verbose --all-targets --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
175+ - cargo clippy --verbose --all-targets --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml -- -D warnings -A $CLIPPY_ALLOWED;
176176 allow_failure : true
177177
178178examples-clippy-wasm :
179179 stage : lint
180180 << : *docker-env
181181 << : *test-refs
182182 script :
183- - for example in examples /*/; do
184- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
185- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
183+ - for example in integration-tests /*/; do
184+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
185+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
186186 cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
187187 done
188188 - for contract in ${DELEGATOR_SUBCONTRACTS}; do
189- cargo clippy --verbose --manifest-path ./examples /delegator/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
189+ cargo clippy --verbose --manifest-path ./integration-tests /delegator/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
190190 done
191191 - for contract in ${UPGRADEABLE_CONTRACTS}; do
192- cargo clippy --verbose --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
192+ cargo clippy --verbose --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
193193 done
194194 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
195- cargo clippy --verbose --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
195+ cargo clippy --verbose --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
196196 done
197- - cargo clippy --verbose --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
197+ - cargo clippy --verbose --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings -A $CLIPPY_ALLOWED;
198198 allow_failure : true
199199
200200
@@ -369,28 +369,28 @@ examples-test:
369369 - job : clippy-std
370370 artifacts : false
371371 script :
372- - for example in examples /*/; do
373- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
374- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
372+ - for example in integration-tests /*/; do
373+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
374+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
375375 if grep -q "e2e-tests = \[\]" "${example}/Cargo.toml"; then
376376 cargo test --verbose --manifest-path ${example}/Cargo.toml --features e2e-tests;
377377 else
378378 cargo test --verbose --manifest-path ${example}/Cargo.toml;
379379 fi;
380380 done
381381 - for contract in ${DELEGATOR_SUBCONTRACTS}; do
382- cargo test --verbose --manifest-path ./examples /delegator/${contract}/Cargo.toml;
382+ cargo test --verbose --manifest-path ./integration-tests /delegator/${contract}/Cargo.toml;
383383 done
384384 - for contract in ${UPGRADEABLE_CONTRACTS}; do
385- cargo test --verbose --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml;
385+ cargo test --verbose --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml;
386386 done
387387 # TODO (#1502): We need to clean before running, otherwise the CI fails with a
388388 # linking error.
389389 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
390- cargo clean --verbose --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml;
391- cargo test --verbose --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml --features e2e-tests;
390+ cargo clean --verbose --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml;
391+ cargo test --verbose --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml --features e2e-tests;
392392 done
393- - cargo test --verbose --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml;
393+ - cargo test --verbose --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml;
394394
395395examples-contract-build :
396396 stage : examples
@@ -399,21 +399,21 @@ examples-contract-build:
399399 script :
400400 - rustup component add rust-src --toolchain stable
401401 - cargo contract -V
402- - for example in examples /*/; do
403- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
404- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
402+ - for example in integration-tests /*/; do
403+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
404+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
405405 pushd $example &&
406406 cargo +stable contract build &&
407407 popd;
408408 done
409- - pushd ./examples /delegator/ && ./build-all.sh && popd
409+ - pushd ./integration-tests /delegator/ && ./build-all.sh && popd
410410 - for contract in ${UPGRADEABLE_CONTRACTS}; do
411- cargo +stable contract build --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml;
411+ cargo +stable contract build --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml;
412412 done
413413 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
414- cargo +stable contract build --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml;
414+ cargo +stable contract build --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml;
415415 done
416- - cargo +stable contract build --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml
416+ - cargo +stable contract build --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml
417417
418418examples-docs :
419419 stage : examples
@@ -426,21 +426,21 @@ examples-docs:
426426 # puts the contract functions in a private module.
427427 # Once https://github.com/paritytech/ink/issues/336 has been implemented we can get rid
428428 # of this flag.
429- - for example in examples /*/; do
430- if [ "$example" = "examples /upgradeable-contracts/" ]; then continue; fi;
431- if [ "$example" = "examples /lang-err-integration-tests/" ]; then continue; fi;
429+ - for example in integration-tests /*/; do
430+ if [ "$example" = "integration-tests /upgradeable-contracts/" ]; then continue; fi;
431+ if [ "$example" = "integration-tests /lang-err-integration-tests/" ]; then continue; fi;
432432 cargo doc --manifest-path ${example}/Cargo.toml --document-private-items --verbose --no-deps;
433433 done
434434 - for contract in ${DELEGATOR_SUBCONTRACTS}; do
435- cargo doc --manifest-path ./examples /delegator/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
435+ cargo doc --manifest-path ./integration-tests /delegator/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
436436 done
437437 - for contract in ${UPGRADEABLE_CONTRACTS}; do
438- cargo doc --manifest-path ./examples /upgradeable-contracts/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
438+ cargo doc --manifest-path ./integration-tests /upgradeable-contracts/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
439439 done
440440 - for contract in ${LANG_ERR_INTEGRATION_CONTRACTS}; do
441- cargo doc --manifest-path ./examples /lang-err-integration-tests/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
441+ cargo doc --manifest-path ./integration-tests /lang-err-integration-tests/${contract}/Cargo.toml --document-private-items --verbose --no-deps;
442442 done
443- - cargo doc --manifest-path ./examples /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml --document-private-items --verbose --no-deps
443+ - cargo doc --manifest-path ./integration-tests /upgradeable-contracts/set-code-hash/updated-incrementer/Cargo.toml --document-private-items --verbose --no-deps
444444
445445
446446# ### stage: ink-waterfall
0 commit comments