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-01-12 15:06:45 +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-12 15:06:45 +00:00
|
|
|
# It should build with minimal features too.
|
|
|
|
cargo build --no-default-features
|
|
|
|
cargo test --no-default-features
|
|
|
|
|
|
|
|
# num-traits with explicit std feature
|
|
|
|
cargo build --verbose --no-default-features --features="$feature"
|
|
|
|
cargo test --verbose --no-default-features --features="$feature"
|