Fix ruma-client-api tests not being run on CI

This commit is contained in:
Jonas Platte 2020-09-29 21:21:53 +02:00
parent 006582e3f2
commit dd59d97582
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 12 additions and 4 deletions

View File

@ -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 ))

View File

@ -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