You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
501B

  1. # This script takes care of testing your crate
  2. set -ex
  3. # TODO This is the "test phase", tweak it as you see fit
  4. main() {
  5. cross build --target $TARGET
  6. cross build --target $TARGET --release
  7. if [ ! -z $DISABLE_TESTS ]; then
  8. return
  9. fi
  10. cross test --target $TARGET
  11. cross test --target $TARGET --release
  12. cross run --target $TARGET
  13. cross run --target $TARGET --release
  14. }
  15. # we don't run the "test phase" when doing deploys
  16. if [ -z $TRAVIS_TAG ]; then
  17. main
  18. fi