2016-10-16 22:37:45 +00:00
|
|
|
#!/bin/bash
|
2018-09-11 22:27:47 +00:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2018-09-07 20:08:05 +00:00
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
#
|
2017-04-27 16:05:22 +00:00
|
|
|
# Script used to run iOS tests.
|
|
|
|
# If not arguments are passed to the script, it will only compile
|
2017-05-06 03:50:47 +00:00
|
|
|
# the RNTester.
|
2017-04-27 16:05:22 +00:00
|
|
|
# If the script is called with a single argument "test", we'll
|
2017-05-06 03:50:47 +00:00
|
|
|
# also run the RNTester integration test (needs JS and packager):
|
2017-04-27 16:05:22 +00:00
|
|
|
# ./objc-test-ios.sh test
|
|
|
|
|
2018-09-07 20:08:05 +00:00
|
|
|
set -ex
|
|
|
|
|
2016-10-16 22:37:45 +00:00
|
|
|
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2017-03-08 19:33:35 +00:00
|
|
|
ROOT=$(dirname "$SCRIPTS")
|
2016-10-16 22:37:45 +00:00
|
|
|
|
2017-03-08 19:33:35 +00:00
|
|
|
cd "$ROOT"
|
2016-10-16 22:37:45 +00:00
|
|
|
|
2018-06-10 23:53:22 +00:00
|
|
|
export TEST_NAME="iOS"
|
|
|
|
export SCHEME="RNTester"
|
|
|
|
export SDK="iphonesimulator"
|
|
|
|
export DESTINATION="platform=iOS Simulator,name=iPhone 5s,OS=11.4"
|
2017-03-06 22:10:07 +00:00
|
|
|
|
2017-07-07 09:29:23 +00:00
|
|
|
# If there's a "test" argument, pass it to the test script.
|
2017-04-27 16:05:22 +00:00
|
|
|
. ./scripts/objc-test.sh $1
|