mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 01:10:36 +00:00
24 lines
546 B
Bash
Executable File
24 lines
546 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
echo Testing num-integer on rustc ${TRAVIS_RUST_VERSION}
|
|
|
|
# num-integer should build and test everywhere.
|
|
cargo build --verbose
|
|
cargo test --verbose
|
|
|
|
# test `no_std`
|
|
cargo build --verbose --no-default-features
|
|
cargo test --verbose --no-default-features
|
|
|
|
# test `i128`
|
|
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
|
|
cargo build --verbose --features=i128
|
|
cargo test --verbose --features=i128
|
|
fi
|
|
|
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
|
cargo test --verbose --all-features --benches
|
|
fi
|