Allow specifying no destination for the uiexplorer test run
Summary: This is a simple change to allow not specifying xcodebuild's `-destination` flag if we just need to build the project without running the test. Reviewed By: bestander Differential Revision: D4173546 fbshipit-source-id: 0b77bb5fc01d8cb6a8c9bc765294796631839655
This commit is contained in:
parent
851aed262d
commit
a217c8bc9c
|
@ -9,7 +9,7 @@ cd $ROOT
|
|||
XCODE_PROJECT="Examples/UIExplorer/UIExplorer.xcodeproj"
|
||||
XCODE_SCHEME="UIExplorer"
|
||||
XCODE_SDK="iphonesimulator"
|
||||
if [ -z "$XCODE_DESTINATION" ]; then
|
||||
if [ -z ${XCODE_DESTINATION+x} ]; then
|
||||
XCODE_DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=10.0"
|
||||
fi
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ cd $ROOT
|
|||
XCODE_PROJECT="Examples/UIExplorer/UIExplorer.xcodeproj"
|
||||
XCODE_SCHEME="UIExplorer-tvOS"
|
||||
XCODE_SDK="appletvsimulator"
|
||||
if [ -z "$XCODE_DESTINATION" ]; then
|
||||
if [ -z ${XCODE_DESTINATION+x} ]; then
|
||||
XCODE_DESTINATION="platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2"
|
||||
fi
|
||||
|
||||
|
|
|
@ -34,9 +34,17 @@ fi
|
|||
# TODO: We use xcodebuild because xctool would stall when collecting info about
|
||||
# the tests before running them. Switch back when this issue with xctool has
|
||||
# been resolved.
|
||||
xcodebuild \
|
||||
-project $XCODE_PROJECT \
|
||||
-scheme $XCODE_SCHEME \
|
||||
-sdk $XCODE_SDK \
|
||||
-destination "$XCODE_DESTINATION" \
|
||||
$XCODE_BUILD_STEPS
|
||||
if [ -n "$XCODE_DESTINATION" ]; then
|
||||
xcodebuild \
|
||||
-project $XCODE_PROJECT \
|
||||
-scheme $XCODE_SCHEME \
|
||||
-sdk $XCODE_SDK \
|
||||
-destination "$XCODE_DESTINATION" \
|
||||
$XCODE_BUILD_STEPS
|
||||
else
|
||||
xcodebuild \
|
||||
-project $XCODE_PROJECT \
|
||||
-scheme $XCODE_SCHEME \
|
||||
-sdk $XCODE_SDK \
|
||||
$XCODE_BUILD_STEPS
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue