test_full.sh 695 B

12345678910111213141516171819202122232425262728
  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 with std and libm
  8. cargo build --verbose --features "libm"
  9. cargo test --verbose --features "libm"
  10. # test `no_std`
  11. cargo build --verbose --no-default-features
  12. cargo test --verbose --no-default-features
  13. # test `no_std` with libm
  14. cargo build --verbose --no-default-features --features "libm"
  15. cargo test --verbose --no-default-features --features "libm"
  16. # test `i128`
  17. if [[ "$TRAVIS_RUST_VERSION" =~ ^(nightly|beta|stable)$ ]]; then
  18. cargo build --verbose --features=i128
  19. cargo test --verbose --features=i128
  20. fi