set -ex
main() {
cross build --target $TARGET
cross build --target $TARGET --release
cross build --target $TARGET --examples
if [ ! -z $DISABLE_TESTS ]; then
return
fi
cross test --target $TARGET -- --test-threads=1
cross test --target $TARGET --release -- --test-threads=1
}
if [ -z $TRAVIS_TAG ]; then
main
fi