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