ci: Add CI tests for the sys crates

This commit is contained in:
Sebastian Dröge 2020-10-31 09:15:09 +02:00
parent 7cca791580
commit f08bd7ef88

View file

@ -255,6 +255,58 @@ test nightly all-features:
- '.cargo test' - '.cargo test'
- .img-nightly - .img-nightly
.cargo test sys:
stage: "test"
script:
- rustc --version
# First build and test all the crates with their relevant features
# Keep features in sync with below
- |
for crate in gstreamer*/sys; do
if [ -e $crate/Cargo.toml ]; then
cargo build --locked --color=always --manifest-path $crate/Cargo.toml
cargo build --locked --color=always --manifest-path $crate/Cargo.toml --all-features
fi
done
# Run tests for crates we can currently run.
# Other tests are broken currently.
- |
for crate in gstreamer/sys \
gstreamer-app/sys \
gstreamer-audio/sys \
gstreamer-base/sys \
gstreamer-check/sys \
gstreamer-controller/sys \
gstreamer-gl/sys \
gstreamer-mpegts/sys \
gstreamer-net/sys \
gstreamer-pbutils/sys \
gstreamer-player/sys \
gstreamer-rtsp-server/sys \
gstreamer-rtsp/sys \
gstreamer-sdp/sys \
gstreamer-tag/sys \
gstreamer-video/sys \
gstreamer-webrtc/sys; \
do \
cargo test --locked --manifest-path $crate/Cargo.toml; \
done
test stable sys:
extends:
- '.cargo test sys'
- .img-stable
test 1.41 sys:
extends:
- '.cargo test sys'
- .img-1-41
test nightly sys:
extends:
- '.cargo test sys'
- .img-nightly
rustfmt: rustfmt:
extends: .img-stable extends: .img-stable
stage: "lint" stage: "lint"