Commit 00ea3938 authored by Denis_P's avatar Denis_P 🏑 Committed by Hero Bird
Browse files

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 @@ ...@@ -6,7 +6,8 @@
stages: stages:
- check-workspace - check
- workspace
- examples - examples
variables: variables:
...@@ -46,17 +47,18 @@ variables: ...@@ -46,17 +47,18 @@ variables:
- /^[0-9]+$/ # PRs - /^[0-9]+$/ # PRs
retry: retry:
max: 2 max: 2
when: when:
- runner_system_failure - runner_system_failure
- unknown_failure - unknown_failure
- api_failure - api_failure
tags: tags:
- linux-docker - linux-docker
#### stage: check-workspace
#### stage: check
check-std: check-std:
stage: check-workspace stage: check
<<: *docker-env <<: *docker-env
script: script:
- for crate in ${ALL_CRATES}; do - for crate in ${ALL_CRATES}; do
...@@ -64,55 +66,67 @@ check-std: ...@@ -64,55 +66,67 @@ check-std:
done done
check-wasm: check-wasm:
stage: check-workspace stage: check
<<: *docker-env <<: *docker-env
script: script:
- for crate in ${WASM_CRATES}; do - for crate in ${WASM_CRATES}; do
cargo check --verbose --no-default-features --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml; cargo check --verbose --no-default-features --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml;
done done
#### stage: workspace
build-std: build-std:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
dependencies:
- check-std
script: script:
- for crate in ${ALL_CRATES}; do - for crate in ${ALL_CRATES}; do
cargo build --verbose --all-features --release; cargo build --verbose --all-features --release;
done done
build-wasm: build-wasm:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
dependencies:
- check-wasm
script: script:
- for crate in ${WASM_CRATES}; do - for crate in ${WASM_CRATES}; do
cargo build --verbose --no-default-features --release --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml; cargo build --verbose --no-default-features --release --target wasm32-unknown-unknown --manifest-path ${crate}/Cargo.toml;
done done
test-std: test:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
dependencies:
- check-std
script: script:
- for crate in ${ALL_CRATES}; do - for crate in ${ALL_CRATES}; do
cargo test --verbose --all-features --release; cargo test --verbose --all-features --release;
done done
clippy-std: clippy-std:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
dependencies:
- check-std
script: script:
- for crate in ${ALL_CRATES}; do - for crate in ${ALL_CRATES}; do
cargo clippy --verbose --all-features -- -D warnings; cargo clippy --verbose --all-features -- -D warnings;
done done
clippy-wasm: clippy-wasm:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
dependencies:
- check-wasm
script: script:
- for crate in ${WASM_CRATES}; do - for crate in ${WASM_CRATES}; do
cargo clippy --verbose --manifest-path ${crate}/Cargo.toml --no-default-features -- -D warnings; cargo clippy --verbose --manifest-path ${crate}/Cargo.toml --no-default-features -- -D warnings;
done done
fmt: fmt:
stage: check-workspace stage: workspace
<<: *docker-env <<: *docker-env
script: script:
- for crate in ${ALL_CRATES}; do - for crate in ${ALL_CRATES}; do
...@@ -126,15 +140,15 @@ examples-test: ...@@ -126,15 +140,15 @@ examples-test:
stage: examples stage: examples
<<: *docker-env <<: *docker-env
script: script:
- for DIR in examples/lang2/*; do - for example in examples/lang2/*; do
cargo test --verbose --manifest-path ${DIR}/Cargo.toml; cargo test --verbose --manifest-path ${example}/Cargo.toml;
done done
examples-fmt: examples-fmt:
stage: examples stage: examples
<<: *docker-env <<: *docker-env
script: script:
- for example in examples/lang2/*; do - for example in examples/lang2/*; do
cargo fmt --verbose --manifest-path ${example}/Cargo.toml -- --check; cargo fmt --verbose --manifest-path ${example}/Cargo.toml -- --check;
done done
...@@ -142,7 +156,7 @@ examples-clippy-std: ...@@ -142,7 +156,7 @@ examples-clippy-std:
stage: examples stage: examples
<<: *docker-env <<: *docker-env
script: 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; cargo clippy --verbose --manifest-path ${example}/Cargo.toml --all-features -- -D warnings;
done done
...@@ -150,7 +164,7 @@ examples-clippy-wasm: ...@@ -150,7 +164,7 @@ examples-clippy-wasm:
stage: examples stage: examples
<<: *docker-env <<: *docker-env
script: 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; cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features -- -D warnings;
done done
...@@ -164,12 +178,12 @@ examples-contract-build: ...@@ -164,12 +178,12 @@ examples-contract-build:
popd; popd;
done done
examples-generate-abi: examples-generate-metadata:
stage: examples stage: examples
<<: *docker-env <<: *docker-env
script: script:
- for example in examples/lang2/*; do - for example in examples/lang2/*; do
pushd $example && pushd $example &&
cargo contract generate-abi && cargo contract generate-metadata &&
popd; popd;
done done
Supports Markdown
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