2017-02-10 00:09:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2017-12-19 01:35:41 +00:00
|
|
|
echo Testing num-traits on rustc ${TRAVIS_RUST_VERSION}
|
2017-02-10 00:09:48 +00:00
|
|
|
|
2018-02-01 19:56:13 +00:00
|
|
|
# num-traits should build and test everywhere.
|
2017-12-19 01:35:41 +00:00
|
|
|
cargo build --verbose
|
|
|
|
cargo test --verbose
|
2017-02-10 00:09:48 +00:00
|
|
|
|
2018-01-31 23:56:25 +00:00
|
|
|
# test `no_std`
|
|
|
|
cargo build --verbose --no-default-features
|
|
|
|
cargo test --verbose --no-default-features
|
2018-04-09 09:11:21 +00:00
|
|
|
|
|
|
|
# test `i128`
|
2018-05-10 19:15:53 +00:00
|
|
|
if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
|
2018-04-19 07:26:02 +00:00
|
|
|
cargo build --verbose --features=i128
|
|
|
|
cargo test --verbose --features=i128
|
|
|
|
fi
|