rustup.sh 568 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Use rustup to locally run the same suite of tests as .travis.yml.
  3. # (You should first install/update 1.8.0, 1.15.0, beta, and nightly.)
  4. set -ex
  5. export TRAVIS_RUST_VERSION
  6. for TRAVIS_RUST_VERSION in 1.8.0 1.15.0 beta nightly; do
  7. run="rustup run $TRAVIS_RUST_VERSION"
  8. if [ "$TRAVIS_RUST_VERSION" = 1.8.0 ]; then
  9. # libc 0.2.34 started using #[deprecated]
  10. $run cargo generate-lockfile
  11. $run cargo update --package libc --precise 0.2.33 || :
  12. fi
  13. $run cargo build --verbose
  14. $run $PWD/ci/test_full.sh
  15. $run cargo doc
  16. done