forked from mirrors/gstreamer-rs
CI: only build with all-features on nightly
glib has a futures feature that only works on nighty and there is no easy to exclude a feature without specifying every other feature.
This commit is contained in:
parent
bc355ea3ee
commit
3bf853e42f
1 changed files with 9 additions and 3 deletions
|
@ -47,8 +47,12 @@ stages:
|
||||||
- rustc --version
|
- rustc --version
|
||||||
- cargo build --color=always --all
|
- cargo build --color=always --all
|
||||||
- G_DEBUG=fatal_warnings cargo test --color=always --all
|
- G_DEBUG=fatal_warnings cargo test --color=always --all
|
||||||
- cargo build --color=always --all --all-features
|
|
||||||
- G_DEBUG=fatal_warnings cargo test --color=always --all --all-features
|
- |
|
||||||
|
if [ -n "$NIGHTLY" ]; then
|
||||||
|
cargo build --color=always --all --all-features
|
||||||
|
G_DEBUG=fatal_warnings cargo test --color=always --all --all-features
|
||||||
|
fi
|
||||||
|
|
||||||
test 1.31:
|
test 1.31:
|
||||||
# 1.31 img
|
# 1.31 img
|
||||||
|
@ -67,6 +71,8 @@ test nightly:
|
||||||
# https://hub.docker.com/r/rustlang/rust/
|
# https://hub.docker.com/r/rustlang/rust/
|
||||||
image: "rustlang/rust:nightly-slim"
|
image: "rustlang/rust:nightly-slim"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
NIGHTLY: 'yes'
|
||||||
extends: '.cargo test'
|
extends: '.cargo test'
|
||||||
|
|
||||||
rustfmt:
|
rustfmt:
|
||||||
|
@ -79,7 +85,7 @@ rustfmt:
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
extends: '.tarball_setup'
|
extends: '.tarball_setup'
|
||||||
image: "rust:slim"
|
image: "rustlang/rust:nightly-slim"
|
||||||
stage: 'extras'
|
stage: 'extras'
|
||||||
script:
|
script:
|
||||||
- rustup component add clippy-preview
|
- rustup component add clippy-preview
|
||||||
|
|
Loading…
Reference in a new issue