mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-11 18:35:31 +00:00
And pass RUST_VERSION to the scripts too. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2006>
26 lines
776 B
Bash
Executable file
26 lines
776 B
Bash
Executable file
#! /bin/bash
|
|
|
|
set -ex
|
|
|
|
rustc --version
|
|
cargo --version
|
|
|
|
cpus=$(nproc || sysctl -n hw.ncpu)
|
|
CARGO_FLAGS="--color=always -j${FDO_CI_CONCURRENT:-$cpus}"
|
|
CARGO_NEXTEST_FLAGS="--profile=ci --no-tests=pass"
|
|
|
|
parent="${CI_PROJECT_DIR:-$(pwd)}"
|
|
|
|
new_report_dir="$parent/junit_reports"
|
|
mkdir -p "$new_report_dir"
|
|
|
|
for cfg in "",default "--all-features --exclude gst-plugin-gtk4",all "--no-default-features",no-default; do
|
|
IFS="," read cfg junit <<< "${cfg}"
|
|
|
|
echo "Building and testing with $cfg"
|
|
|
|
cargo build $CARGO_FLAGS --locked --all --all-targets $cfg
|
|
RUST_BACKTRACE=1 G_DEBUG=fatal_warnings cargo nextest run $CARGO_NEXTEST_FLAGS $CARGO_FLAGS --locked --all --all-targets $cfg
|
|
|
|
mv "$parent/target/nextest/ci/junit.xml" "$new_report_dir/junit-$junit.xml"
|
|
done
|