mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
18 lines
348 B
Bash
Executable File
18 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
FLUTTER_ENGINE=ios_debug_sim_unopt
|
|
|
|
if [ $# -eq 1 ]; then
|
|
FLUTTER_ENGINE=$1
|
|
fi
|
|
|
|
PRETTY="cat"
|
|
if which xcpretty; then
|
|
PRETTY="xcpretty"
|
|
fi
|
|
|
|
set -o pipefail && xcodebuild -sdk iphonesimulator \
|
|
-scheme IosUnitTests \
|
|
-destination 'platform=iOS Simulator,name=iPhone SE,OS=12.2' \
|
|
test \
|
|
FLUTTER_ENGINE=$FLUTTER_ENGINE | $PRETTY
|