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.

22 lines
428B

  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. }
  13. # we don't run the "test phase" when doing deploys
  14. if [ -z $TRAVIS_TAG ]; then
  15. main
  16. fi