Skip to content

Commit c22a863

Browse files
author
Guillaume Desmottes
committed
ci: coverage: don't build examples and tutorials
We just want to build and run the tests to generate the coverage reports. Workaround for rust-lang/rust#84421
1 parent 9d3888d commit c22a863

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ plugins-update-nightly:
221221
fi
222222
done
223223
224-
# If we do a build with all features then also build the
225-
# tutorials/examples with all features
226224
- |
227-
if [ -n "$ALL_FEATURES" ]; then
225+
if [ -n "$EXAMPLES_TUTORIALS" ]; then
228226
cargo build --locked --color=always --manifest-path examples/Cargo.toml --bins --examples --all-features
229227
cargo build --locked --color=always --manifest-path tutorials/Cargo.toml --bins --examples --all-features
230228
fi
@@ -247,6 +245,7 @@ test stable:
247245
test stable all-features:
248246
variables:
249247
ALL_FEATURES: 'yes'
248+
EXAMPLES_TUTORIALS: 'yes'
250249
extends:
251250
- '.cargo test'
252251
- .img-stable
@@ -261,6 +260,7 @@ test nightly all-features:
261260
allow_failure: true
262261
variables:
263262
ALL_FEATURES: 'yes'
263+
EXAMPLES_TUTORIALS: 'yes'
264264
extends:
265265
- '.cargo test'
266266
- .img-nightly

0 commit comments

Comments
 (0)