Commit 87647d4b authored by Denis_P's avatar Denis_P 🤸

workspace check timed

parent 1470c2fe
Pipeline #53139 failed with stage
in 5 minutes and 21 seconds
......@@ -45,7 +45,7 @@ variables:
#### stage: test
check-workspace:
.check-workspace:
stage: test
<<: *docker-env
script:
......@@ -61,27 +61,32 @@ check-workspace:
fi
- sccache -s
examples-wasm:
stage: test
<<: *docker-env
script:
- cargo build --release --no-default-features --target=wasm32-unknown-unknown --verbose --manifest-path examples/lang/$example/Cargo.toml
- sccache -s
examples-test:
check-workspace:
stage: test
<<: *docker-env
script:
- cargo test --verbose --manifest-path examples/lang/$example/Cargo.toml
- sccache -s
- time cargo check --verbose --all --all-features
- time cargo check --verbose --all --no-default-features
- time cargo fmt --verbose --all -- --check
- time cargo clippy --verbose --all --all-features -- -D warnings
- time cargo clippy --verbose --all --no-default-features -- -D warnings
- time cargo test --verbose --all --all-features
- time cargo build --verbose --all --no-default-features --release --target=wasm32-unknown-unknown
examples-abi:
check-examples:
stage: test
<<: *docker-env
script:
- cargo run --package abi-gen --manifest-path examples/lang/$example/Cargo.toml
- ./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
# stage: build
\ No newline at end of file
......@@ -19,7 +19,7 @@ declare -A results_abi
all_checks_passed=0
for example in $(ls examples/lang); do
cargo build --release --no-default-features --target=wasm32-unknown-unknown --verbose --manifest-path examples/lang/$example/Cargo.toml
time cargo build --release --no-default-features --target=wasm32-unknown-unknown --verbose --manifest-path examples/lang/$example/Cargo.toml
result_wasm=$?
let "all_checks_passed |= $result_wasm"
if [ $result_wasm -eq 0 ]
......@@ -28,7 +28,7 @@ for example in $(ls examples/lang); do
else
results_wasm[$example]="ERROR"
fi
cargo test --verbose --manifest-path examples/lang/$example/Cargo.toml
time cargo test --verbose --manifest-path examples/lang/$example/Cargo.toml
result_test=$?
let "all_checks_passed |= $result_test"
if [ $result_test -eq 0 ]
......@@ -37,7 +37,7 @@ for example in $(ls examples/lang); do
else
results_test[$example]="ERROR"
fi
cargo run --package abi-gen --manifest-path examples/lang/$example/Cargo.toml
time cargo run --package abi-gen --manifest-path examples/lang/$example/Cargo.toml
result_abi=$?
let "all_checks_passed |= $result_abi"
if [ $result_abi -eq 0 ]
......
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