Verified Commit 87647d4b authored by Denis_P's avatar Denis_P 🏑
Browse files

workspace check timed

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