2017-02-17 22:54:44 -08:00
|
|
|
# This script takes care of testing your crate
|
|
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
|
|
main() {
|
2017-05-02 19:51:52 +02:00
|
|
|
cross build --target $TARGET $EXTRA_ARGS
|
2017-02-17 22:54:44 -08:00
|
|
|
|
|
|
|
|
if [ ! -z $DISABLE_TESTS ]; then
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
|
2017-05-02 19:51:52 +02:00
|
|
|
cross test --target $TARGET $EXTRA_ARGS
|
2017-02-17 22:54:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# we don't run the "test phase" when doing deploys
|
|
|
|
|
if [ -z $TRAVIS_TAG ]; then
|
|
|
|
|
main
|
|
|
|
|
fi
|