From dd59d97582ec3319e22582ee4251c50c291b326d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 29 Sep 2020 21:21:53 +0200 Subject: [PATCH] Fix ruma-client-api tests not being run on CI --- .builds/beta.yml | 8 ++++++-- .builds/stable.yml | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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