CI: test with libm

This commit is contained in:
Yoan Lecoq 2019-02-03 16:53:27 +01:00 committed by Josh Stone
parent c28e2fe062
commit 55c5b7455a
1 changed files with 9 additions and 0 deletions

View File

@ -8,10 +8,19 @@ echo Testing num-traits on rustc ${TRAVIS_RUST_VERSION}
cargo build --verbose
cargo test --verbose
# test with std and libm
cargo build --verbose --features "libm"
cargo test --verbose --features "libm"
# test `no_std`
cargo build --verbose --no-default-features
cargo test --verbose --no-default-features
# test `no_std` with libm
cargo build --verbose --no-default-features --features "libm"
cargo test --verbose --no-default-features --features "libm"
# test `i128`
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
cargo build --verbose --features=i128