diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/rust/num-rational/ci | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/num-rational/ci')
-rwxr-xr-x | third_party/rust/num-rational/ci/rustup.sh | 12 | ||||
-rwxr-xr-x | third_party/rust/num-rational/ci/test_full.sh | 28 |
2 files changed, 40 insertions, 0 deletions
diff --git a/third_party/rust/num-rational/ci/rustup.sh b/third_party/rust/num-rational/ci/rustup.sh new file mode 100755 index 0000000000..59704a069a --- /dev/null +++ b/third_party/rust/num-rational/ci/rustup.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Use rustup to locally run the same suite of tests as .travis.yml. +# (You should first install/update all versions listed below.) + +set -ex + +export TRAVIS_RUST_VERSION +for TRAVIS_RUST_VERSION in 1.15.0 1.26.0 stable beta nightly; do + run="rustup run $TRAVIS_RUST_VERSION" + $run cargo build --verbose + $run $PWD/ci/test_full.sh +done diff --git a/third_party/rust/num-rational/ci/test_full.sh b/third_party/rust/num-rational/ci/test_full.sh new file mode 100755 index 0000000000..29ff03d3f7 --- /dev/null +++ b/third_party/rust/num-rational/ci/test_full.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +set -ex + +echo Testing num-rational on rustc ${TRAVIS_RUST_VERSION} + +FEATURES="std bigint-std serde" +if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable|1.26.0)$ ]]; then + FEATURES="$FEATURES i128" +fi + +# num-rational should build and test everywhere. +cargo build --verbose +cargo test --verbose + +# It should build with minimal features too. +cargo build --no-default-features +cargo test --no-default-features + +# Each isolated feature should also work everywhere. +for feature in $FEATURES; do + cargo build --verbose --no-default-features --features="$feature" + cargo test --verbose --no-default-features --features="$feature" +done + +# test all supported features together +cargo build --features="$FEATURES" +cargo test --features="$FEATURES" |