Skip to content

Commit 933f26c

Browse files
authored
Move scripts used in CI to the new location (use-ink#1182)
* Update CI scripts location * Make paths uniform
1 parent c974cde commit 933f26c

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

.gitlab-ci.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ workflow:
7272
image: "${CI_IMAGE}"
7373
before_script:
7474
- *rust-info-script
75-
- ./scripts/.ci/pre_cache.sh
75+
- ./scripts/ci/pre_cache.sh
7676
- sccache -s
7777
interruptible: true
7878
tags:
@@ -119,7 +119,7 @@ spellcheck:
119119
<<: *test-refs
120120
script:
121121
- 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/
123123
allow_failure: true
124124

125125
fmt:
@@ -129,8 +129,8 @@ fmt:
129129
script:
130130
- cargo fmt --verbose --all -- --check
131131
# 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
134134
allow_failure: true
135135

136136
examples-fmt:
@@ -143,7 +143,7 @@ examples-fmt:
143143
cargo fmt --verbose --manifest-path ${example}/Cargo.toml -- --check --config=license_template_path="";
144144
done
145145
- 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="";
147147
done
148148
allow_failure: true
149149

@@ -153,7 +153,7 @@ clippy-std:
153153
<<: *test-refs
154154
script:
155155
- 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;
157157
done
158158

159159
clippy-wasm:
@@ -162,7 +162,7 @@ clippy-wasm:
162162
<<: *test-refs
163163
script:
164164
- 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;
166166
done
167167
allow_failure: true
168168

@@ -175,7 +175,7 @@ examples-clippy-std:
175175
cargo clippy --verbose --all-targets --manifest-path ${example}/Cargo.toml -- -D warnings;
176176
done
177177
- 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;
179179
done
180180
allow_failure: true
181181

@@ -188,7 +188,7 @@ examples-clippy-wasm:
188188
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
189189
done
190190
- 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;
192192
done
193193
allow_failure: true
194194

@@ -201,7 +201,7 @@ check-std:
201201
<<: *test-refs
202202
script:
203203
- 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;
205205
done
206206

207207
check-wasm:
@@ -210,7 +210,7 @@ check-wasm:
210210
<<: *test-refs
211211
script:
212212
- 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;
214214
done
215215

216216

@@ -225,7 +225,7 @@ build-std:
225225
artifacts: false
226226
script:
227227
- 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;
229229
done
230230

231231
build-wasm:
@@ -237,7 +237,7 @@ build-wasm:
237237
artifacts: false
238238
script:
239239
- 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;
241241
done
242242

243243
test:
@@ -338,7 +338,7 @@ examples-test:
338338
cargo test --verbose --manifest-path ${example}/Cargo.toml;
339339
done
340340
- 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;
342342
done
343343

344344
examples-contract-build:
@@ -352,7 +352,7 @@ examples-contract-build:
352352
cargo contract build &&
353353
popd;
354354
done
355-
- cd examples/delegator/ && ./build-all.sh
355+
- cd ./examples/delegator/ && ./build-all.sh
356356

357357
examples-docs:
358358
stage: examples
@@ -369,7 +369,7 @@ examples-docs:
369369
cargo doc --manifest-path ${example}/Cargo.toml --document-private-items --verbose --no-deps;
370370
done
371371
- 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;
373373
done
374374

375375

@@ -386,7 +386,7 @@ ink-waterfall:
386386
# The `ink-waterfall` project id in GitLab
387387
DWNSTRM_ID: 409
388388
script:
389-
- ./scripts/.ci/trigger_pipeline.sh
389+
- ./scripts/ci/trigger_pipeline.sh
390390
allow_failure: true
391391

392392

@@ -423,8 +423,8 @@ publish-docs:
423423
- git fetch origin gh-pages
424424
# saving README and docs
425425
- 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/
428428
- git checkout gh-pages
429429
- mv _config.yml /tmp/doc/
430430
# remove everything and restore generated docs, README and Jekyll config
@@ -461,9 +461,9 @@ fuzz-tests:
461461
# We fuzz-test only crates which possess the `ink-fuzz-tests` feature
462462
- all_tests_passed=0
463463
- 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;
465465
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=$?;
467467
all_tests_passed=$(( all_tests_passed | exit_code ));
468468
fi
469469
done

CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222
# CI
2323
/.github/workflows/ @paritytech/ci @Robbepop @cmichi @ascjones @HCastano
24-
/scripts/.ci/ @paritytech/ci @Robbepop @cmichi @ascjones @HCastano
24+
/scripts/ci/ @paritytech/ci @Robbepop @cmichi @ascjones @HCastano
2525
/.gitlab-ci.yml @paritytech/ci @Robbepop @cmichi @ascjones @HCastano
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)