From b68deabb8678f6158aaab920968f3a19fc921ddd Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 13 Aug 2020 22:13:20 +0200 Subject: [PATCH] Fix CI --- .builds/beta.yml | 13 +++++-------- .builds/stable.yml | 13 +++++-------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/.builds/beta.yml b/.builds/beta.yml index ea256dfa..f6490973 100644 --- a/.builds/beta.yml +++ b/.builds/beta.yml @@ -34,14 +34,11 @@ tasks: cargo test --all-features --verbose id_test_2_exit=$? - # ruma-client_api also has a few features. Make sure it works both with - # all of them and none of them being enabled. + # 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 - cargo test --no-default-features --verbose - id_test_1_exit=$? + cargo check --all-features --verbose + client_api_exit=$? - cargo test --all-features --verbose - id_test_2_exit=$? - - exit $(( $fmt_exit || $clippy_exit || $test_exit || $id_test_1_exit || $id_test_2_exit )) + 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 a362e266..834ee417 100644 --- a/.builds/stable.yml +++ b/.builds/stable.yml @@ -34,16 +34,13 @@ tasks: cargo test --all-features --verbose id_test_2_exit=$? - # ruma-client_api also has a few features. Make sure it works both with - # all of them and none of them being enabled. + # 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 - cargo test --no-default-features --verbose - id_test_1_exit=$? + cargo check --all-features --verbose + client_api_exit=$? - cargo test --all-features --verbose - id_test_2_exit=$? - - exit $(( $fmt_exit || $clippy_exit || $test_exit || $id_test_1_exit || $id_test_2_exit )) + 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