Dedicate a specific CI job to nalgebra-lapack + fix Xargo build.

This commit is contained in:
sebcrozet 2018-05-24 23:56:47 +02:00 committed by Sébastien Crozet
parent 9c7620e530
commit 4eaa087b63
3 changed files with 27 additions and 13 deletions

View File

@ -6,7 +6,8 @@ rust:
- stable - stable
env: env:
- CARGO_FEATURE_SYSTEM_NETLIB=1 CARGO_FEATURE_EXCLUDE_LAPACKE=1 CARGO_FEATURE_EXCLUDE_CBLAS=1 -
- LAPACK=1 CARGO_FEATURE_SYSTEM_NETLIB=1 CARGO_FEATURE_EXCLUDE_LAPACKE=1 CARGO_FEATURE_EXCLUDE_CBLAS=1
- NO_STD=1 CARGO_FEATURES="" - NO_STD=1 CARGO_FEATURES=""
- NO_STD=1 CARGO_FEATURES="alloc" - NO_STD=1 CARGO_FEATURES="alloc"

View File

@ -3,16 +3,26 @@
set -ev set -ev
if [ -z "$NO_STD" ]; then if [ -z "$NO_STD" ]; then
cargo build --verbose; if [ -z "$LAPACK" ]; then
cargo build --verbose --features "arbitrary"; cargo build --verbose -p nalgebra;
cargo build --verbose --features "mint"; cargo build --verbose -p nalgebra --features "arbitrary";
cargo build --verbose --features "alloc"; cargo build --verbose -p nalgebra --features "mint";
cargo build --verbose --features "serde-serialize"; cargo build --verbose -p nalgebra --features "alloc";
cargo build --verbose --features "abomonation-serialize"; cargo build --verbose -p nalgebra --features "serde-serialize";
cargo build --verbose --features "debug"; cargo build --verbose -p nalgebra --features "abomonation-serialize";
cargo build --verbose --features "debug arbitrary mint serde-serialize abomonation-serialize"; cargo build --verbose -p nalgebra --features "debug";
cargo build --verbose -p nalgebra --features "debug arbitrary mint serde-serialize abomonation-serialize";
else
cargo build -p nalgebra-lapack;
fi
else else
if [ "$CARGO_FEATURES" == "alloc" ]; then
cat << EOF > Xargo.toml
[target.x86_64-unknown-linux-gnu.dependencies]
alloc = {}
EOF
fi
rustup component add rust-src rustup component add rust-src
cargo install xargo; cargo install xargo
xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}"; xargo build --verbose --no-default-features --target=x86_64-unknown-linux-gnu --features "${CARGO_FEATURES}";
fi fi

View File

@ -3,7 +3,10 @@
set -ev set -ev
if [ -z "$NO_STD" ]; then if [ -z "$NO_STD" ]; then
if [ -z "$LAPACK" ]; then
cargo test --verbose; cargo test --verbose;
cargo test --verbose "debug arbitrary mint serde-serialize abomonation-serialize"; cargo test --verbose "debug arbitrary mint serde-serialize abomonation-serialize";
else
cd nalgebra-lapack; cargo test --verbose; cd nalgebra-lapack; cargo test --verbose;
fi
fi fi