mirror of
https://github.com/status-im/react-native.git
synced 2025-01-11 01:56:26 +00:00
e183844df5
Summary: This form of THIS_DIR resolves symlinks, which is better. Reviewed By: davidaurelio Differential Revision: D8661886 fbshipit-source-id: 90bf329e765d9623d103b03c5dd3b71fae9d9854
21 lines
518 B
Bash
Executable File
21 lines
518 B
Bash
Executable File
#!/bin/bash
|
|
# This script should be run from the react-native root
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
source "scripts/.tests.env"
|
|
|
|
if [ -n "$1" ]
|
|
then
|
|
echo "Overriding..."
|
|
IOS_TARGET_OS="${1}"
|
|
SDK="iphonesimulator${1}"
|
|
DESTINATION="platform=iOS Simulator,OS=${IOS_TARGET_OS},name=${IOS_DEVICE}"
|
|
fi
|
|
|
|
xcodebuild \
|
|
-project "RNTester/RNTester.xcodeproj" \
|
|
-scheme $SCHEME \
|
|
-sdk $SDK \
|
|
-destination "$DESTINATION" \
|
|
build test
|