2015-03-25 02:34:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Run from react-native root
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2015-03-26 15:55:30 +00:00
|
|
|
if [ -z "$1" ]
|
|
|
|
then
|
2015-03-26 16:16:55 +00:00
|
|
|
echo "You must supply an OS version as the first arg, e.g. 8.1"
|
2015-03-26 15:55:30 +00:00
|
|
|
exit 255
|
|
|
|
fi
|
|
|
|
|
2015-03-25 02:34:12 +00:00
|
|
|
xctool \
|
|
|
|
-project IntegrationTests/IntegrationTests.xcodeproj \
|
|
|
|
-scheme IntegrationTests \
|
|
|
|
-sdk iphonesimulator8.1 \
|
|
|
|
-destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \
|
|
|
|
build test
|
|
|
|
|
|
|
|
xctool \
|
|
|
|
-project Examples/UIExplorer/UIExplorer.xcodeproj \
|
|
|
|
-scheme UIExplorer \
|
|
|
|
-sdk iphonesimulator8.1 \
|
|
|
|
-destination "platform=iOS Simulator,OS=${1},name=iPhone 5" \
|
|
|
|
build test
|