test_full.sh 439 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -ex
  3. echo Testing num-traits on rustc ${TRAVIS_RUST_VERSION}
  4. # num-traits should build and test everywhere.
  5. cargo build --verbose
  6. cargo test --verbose
  7. # test `no_std`
  8. cargo build --verbose --no-default-features
  9. cargo test --verbose --no-default-features
  10. # test `i128`
  11. if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
  12. cargo build --verbose --features=i128
  13. cargo test --verbose --features=i128
  14. fi