ci: Run coverage job on the stable image

This commit is contained in:
Sebastian Dröge 2022-04-07 18:51:20 +03:00
parent 680d4af732
commit c82aefd2a4
2 changed files with 6 additions and 5 deletions

View file

@ -440,7 +440,7 @@ coverage:
allow_failure: true allow_failure: true
extends: extends:
- '.cargo test' - '.cargo test'
- .img-nightly - .img-stable
stage: 'extras' stage: 'extras'
variables: variables:
ALL_FEATURES: 'yes' ALL_FEATURES: 'yes'

View file

@ -23,15 +23,16 @@ rustc --version
if [ "$RUST_IMAGE_FULL" = "1" ]; then if [ "$RUST_IMAGE_FULL" = "1" ]; then
rustup component add clippy-preview rustup component add clippy-preview
rustup component add rustfmt rustup component add rustfmt
cargo install --force cargo-deny cargo install --force cargo-deny
cargo install --force cargo-outdated cargo install --force cargo-outdated
# Coverage tools
rustup component add llvm-tools-preview
cargo install --force grcov
fi fi
if [ "$RUST_VERSION" = "nightly" ]; then if [ "$RUST_VERSION" = "nightly" ]; then
# Coverage tools
cargo install grcov
rustup component add llvm-tools-preview
# Documentation tools # Documentation tools
cargo install --force rustdoc-stripper cargo install --force rustdoc-stripper
fi fi