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.

20 lines
369B

  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 --release
  6. if [ ! -z $DISABLE_TESTS ]; then
  7. return
  8. fi
  9. cross test --all --target $TARGET --release
  10. }
  11. # we don't run the "test phase" when doing deploys
  12. if [ -z $TRAVIS_TAG ]; then
  13. main
  14. fi