Commit 0eb3ed81 authored by Denis_P's avatar Denis_P 🤸

parallelized workspace

parent b205ded0
Pipeline #53145 failed with stages
in 3 minutes and 9 seconds
......@@ -6,8 +6,8 @@
stages:
- test
- build
- check-workspace
- examples
variables:
GIT_STRATEGY: fetch
......@@ -43,54 +43,55 @@ variables:
tags:
- linux-docker
#### stage: test
#### stage: check-workspace
.check-workspace:
stage: test
cargo-check-af:
stage: check-workspace
<<: *docker-env
script:
- ./scripts/check-workspace.sh
- check_workspace=$?
- if [ $check_workspace -eq 0 ];
then
echo "Workspace checks have passed!";
exit 0;
else
echo "Some workspace checks have not passed!";
exit 1;
fi
- sccache -s
check-workspace:
stage: test
- time cargo check --verbose --all --all-features
cargo-check-nf:
stage: check-workspace
<<: *docker-env
script:
- time cargo check --verbose --all --all-features
- time cargo check --verbose --all --no-default-features
cargo-fmt:
stage: check-workspace
<<: *docker-env
script:
- time cargo fmt --verbose --all -- --check
cargo-clippy-af:
stage: check-workspace
<<: *docker-env
script:
- time cargo clippy --verbose --all --all-features -- -D warnings
cargo-clippy-nf:
stage: check-workspace
<<: *docker-env
script:
- time cargo clippy --verbose --all --no-default-features -- -D warnings
cargo-test-af:
stage: check-workspace
<<: *docker-env
script:
- time cargo test --verbose --all --all-features
- time cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
.check-examples:
stage: test
cargo-build-nf:
stage: check-workspace
<<: *docker-env
script:
- ./scripts/check-examples.sh
- check_examples=$?
- if [ $check_examples -eq 0 ];
then
echo "Examples checks have passed!";
exit 0;
else
echo "Some examples checks have not passed!";
exit 1;
fi
- sccache -s
- time cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
# stage: build
examples-wasm:
stage: test
stage: examples
<<: *docker-env
script:
- for example in $(ls examples/lang); do
......@@ -99,7 +100,7 @@ examples-wasm:
- sccache -s
examples-test:
stage: test
stage: examples
<<: *docker-env
script:
- for example in $(ls examples/lang); do
......@@ -108,12 +109,10 @@ examples-test:
- sccache -s
examples-abi:
stage: test
stage: examples
<<: *docker-env
script:
- for example in $(ls examples/lang); do
time cargo run --package abi-gen --manifest-path examples/lang/$example/Cargo.toml;
done
- sccache -s
# stage: build
\ No newline at end of file
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