mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
9e89c93ad5
Close #519 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1572>
52 lines
1.7 KiB
Bash
Executable file
52 lines
1.7 KiB
Bash
Executable file
#! /bin/bash
|
|
|
|
set -ex
|
|
|
|
rustc --version
|
|
cargo --version
|
|
|
|
cpus=$(nproc || sysctl -n hw.ncpu)
|
|
CARGO_FLAGS="-j${FDO_CI_CONCURRENT:-$cpus}"
|
|
|
|
parent="${CI_PROJECT_DIR:-$(pwd)}"
|
|
|
|
for crate in gstreamer*/sys gstreamer-gl/*/sys; do
|
|
if [ -e "$crate/Cargo.toml" ]; then
|
|
echo "Building $crate with --all-features"
|
|
cargo build $CARGO_FLAGS --locked --color=always --manifest-path "$crate/Cargo.toml" --all-features
|
|
fi
|
|
done
|
|
|
|
for crate in gstreamer/sys \
|
|
gstreamer-allocators/sys \
|
|
gstreamer-analytics/sys \
|
|
gstreamer-app/sys \
|
|
gstreamer-audio/sys \
|
|
gstreamer-base/sys \
|
|
gstreamer-check/sys \
|
|
gstreamer-controller/sys \
|
|
gstreamer-editing-services/sys \
|
|
gstreamer-gl/sys \
|
|
gstreamer-gl/egl/sys \
|
|
gstreamer-gl/wayland/sys \
|
|
gstreamer-gl/x11/sys \
|
|
gstreamer-mpegts/sys \
|
|
gstreamer-net/sys \
|
|
gstreamer-pbutils/sys \
|
|
gstreamer-play/sys \
|
|
gstreamer-player/sys \
|
|
gstreamer-rtp/sys \
|
|
gstreamer-rtsp-server/sys \
|
|
gstreamer-rtsp/sys \
|
|
gstreamer-sdp/sys \
|
|
gstreamer-tag/sys \
|
|
gstreamer-validate/sys \
|
|
gstreamer-video/sys \
|
|
gstreamer-webrtc/sys; do
|
|
echo "Testing $crate with --all-features)"
|
|
RUST_BACKTRACE=1 cargo nextest run --profile ci $CARGO_FLAGS --locked --color=always --manifest-path $crate/Cargo.toml --all-features
|
|
|
|
new_report_dir="$parent/junit_reports/$crate"
|
|
mkdir -p "$new_report_dir"
|
|
mv "$parent/target/nextest/ci/junit.xml" "$new_report_dir/junit.xml"
|
|
done
|