diff --git a/.builds/beta.yml b/.builds/beta.yml index 0061bb27..844a9e40 100644 --- a/.builds/beta.yml +++ b/.builds/beta.yml @@ -26,7 +26,7 @@ tasks: # ruma-identifiers has a bunch of features. Make sure it works both with # all of them and none of them being enabled. - cd ruma-identifiers + pushd ruma-identifiers cargo test --no-default-features --quiet id_test_1_exit=$? @@ -34,11 +34,15 @@ tasks: cargo test --all-features --quiet id_test_2_exit=$? + popd + # ruma-client_api also has a few optional features, but none are enabled # by default. Make sure it works with all of them. - cd ruma-client-api + pushd ruma-client-api cargo check --all-features --verbose client_api_exit=$? + popd + exit $(( $fmt_exit || $clippy_exit || $test_exit || $id_test_1_exit || $id_test_2_exit || $client_api_exit )) diff --git a/.builds/stable.yml b/.builds/stable.yml index 4e7b2fb5..98f7f780 100644 --- a/.builds/stable.yml +++ b/.builds/stable.yml @@ -26,7 +26,7 @@ tasks: # ruma-identifiers has a bunch of features. Make sure it works both with # all of them and none of them being enabled. - cd ruma-identifiers + pushd ruma-identifiers cargo test --no-default-features --quiet id_test_1_exit=$? @@ -34,13 +34,17 @@ tasks: cargo test --all-features --quiet id_test_2_exit=$? + popd + # ruma-client_api also has a few optional features, but none are enabled # by default. Make sure it works with all of them. - cd ruma-client-api + pushd ruma-client-api cargo check --all-features --quiet client_api_exit=$? + popd + exit $(( $fmt_exit || $clippy_exit || $test_exit || $id_test_1_exit || $id_test_2_exit || $client_api_exit )) # TODO: Add audit task once cargo-audit binary releases are available. # See https://github.com/RustSec/cargo-audit/issues/66