set -ex
main() {
if [ "$TRAVIS" = true ]; then
export RUSTFLAGS=--cfg=travis
fi
IFS=';' read -ra TARGET_ARRAY <<< "$TARGET"
for t in "${TARGET_ARRAY[@]}"; do
cross build --target $t
cross build --target $t --release
if [ ! -z $DISABLE_TESTS ]; then
continue
fi
cross test --target $t
cross test --target $t --release
done
}
if [ -z $TRAVIS_TAG ]; then
main
fi