From c22a863a5703a26f7f644333b51df6ae065680e0 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 23 Apr 2021 09:59:30 +0200 Subject: [PATCH] ci: coverage: don't build examples and tutorials We just want to build and run the tests to generate the coverage reports. Workaround for https://github.com/rust-lang/rust/issues/84421 --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ce951494..95383a375 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -221,10 +221,8 @@ plugins-update-nightly: fi done - # If we do a build with all features then also build the - # tutorials/examples with all features - | - if [ -n "$ALL_FEATURES" ]; then + if [ -n "$EXAMPLES_TUTORIALS" ]; then cargo build --locked --color=always --manifest-path examples/Cargo.toml --bins --examples --all-features cargo build --locked --color=always --manifest-path tutorials/Cargo.toml --bins --examples --all-features fi @@ -247,6 +245,7 @@ test stable: test stable all-features: variables: ALL_FEATURES: 'yes' + EXAMPLES_TUTORIALS: 'yes' extends: - '.cargo test' - .img-stable @@ -261,6 +260,7 @@ test nightly all-features: allow_failure: true variables: ALL_FEATURES: 'yes' + EXAMPLES_TUTORIALS: 'yes' extends: - '.cargo test' - .img-nightly