Commit 00ea3938 authored by Denis_P's avatar Denis_P 👙 Committed by Hero Bird

change stages, rename abi (#262)

* change stages, rename abi

* rename test job
parent 73e3abd9
Pipeline #69557 failed with stages
in 28 minutes and 32 seconds
......@@ -6,7 +6,8 @@
stages:
- check-workspace
- check
- workspace
- examples
variables:
......@@ -46,17 +47,18 @@ variables:
- /^[0-9]+$/ # PRs
retry:
max: 2
when:
when:
- runner_system_failure
- unknown_failure
- api_failure
tags:
- linux-docker
#### stage: check-workspace
#### stage: check
check-std:
stage: check-workspace
stage: check
<<: *docker-env
script:
- for crate in ${ALL_CRATES}; do
......@@ -64,55 +66,67 @@ check-std:
done
check-wasm:
stage: check-workspace
stage: check
<<: *docker-env
script:
- for crate in ${WASM_CRATES}; do
cargo check --verbose --no-default-features --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml;
done
#### stage: workspace
build-std:
stage: check-workspace
stage: workspace
<<: *docker-env
dependencies:
- check-std
script:
- for crate in ${ALL_CRATES}; do
cargo build --verbose --all-features --release;
done
build-wasm:
stage: check-workspace
stage: workspace
<<: *docker-env
dependencies:
- check-wasm
script:
- for crate in ${WASM_CRATES}; do
cargo build --verbose --no-default-features --release --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml;
done
test-std:
stage: check-workspace
test:
stage: workspace
<<: *docker-env
dependencies:
- check-std
script:
- for crate in ${ALL_CRATES}; do
cargo test --verbose --all-features --release;
done
clippy-std:
stage: check-workspace
stage: workspace
<<: *docker-env
dependencies:
- check-std
script:
- for crate in ${ALL_CRATES}; do
cargo clippy --verbose --all-features -- -D warnings;
done
clippy-wasm:
stage: check-workspace
stage: workspace
<<: *docker-env
dependencies:
- check-wasm
script:
- for crate in ${WASM_CRATES}; do
cargo clippy --verbose --manifest-path ${crate}/Cargo.toml --no-default-features -- -D warnings;
done
fmt:
stage: check-workspace
stage: workspace
<<: *docker-env
script:
- for crate in ${ALL_CRATES}; do
......@@ -126,15 +140,15 @@ examples-test:
stage: examples
<<: *docker-env
script:
- for DIR in examples/lang2/*; do
cargo test --verbose --manifest-path ${DIR}/Cargo.toml;
- for example in examples/lang2/*; do
cargo test --verbose --manifest-path ${example}/Cargo.toml;
done
examples-fmt:
stage: examples
<<: *docker-env
script:
- for example in examples/lang2/*; do
- for example in examples/lang2/*; do
cargo fmt --verbose --manifest-path ${example}/Cargo.toml -- --check;
done
......@@ -142,7 +156,7 @@ examples-clippy-std:
stage: examples
<<: *docker-env
script:
- for example in examples/lang2/*; do
- for example in examples/lang2/*; do
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --all-features -- -D warnings;
done
......@@ -150,7 +164,7 @@ examples-clippy-wasm:
stage: examples
<<: *docker-env
script:
- for example in examples/lang2/*; do
- for example in examples/lang2/*; do
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features -- -D warnings;
done
......@@ -164,12 +178,12 @@ examples-contract-build:
popd;
done
examples-generate-abi:
examples-generate-metadata:
stage: examples
<<: *docker-env
script:
- for example in examples/lang2/*; do
- for example in examples/lang2/*; do
pushd $example &&
cargo contract generate-abi &&
cargo contract generate-metadata &&
popd;
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment