mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 22:28:09 +00:00
Summary: Use Xcode 10.1 and iOS 12.1 SDK to run iOS tests on an iOS 12.1 iPhone XS Simulator, all of which are available on a default Xcode 10.1 install. Note that we were previously running iOS tests using Xcode 10.1 and the 12.1 SDK in a separate `test_xcode10` workflow on Circle CI. This was in place to allow us to track Xcode 10 compatibility during the Xcode 10 beta. Now that Xcode 10 has been public for a while, we can drop the compatibility check and use Xcode 10 in our main iOS test workflow. Reviewed By: TheSavior Differential Revision: D13317891 fbshipit-source-id: 04c17bf3a2e9d3617f14a46b4ed30a5491a4f4a4
28 lines
797 B
Bash
Executable File
28 lines
797 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
#
|
|
# Script used to run iOS tests.
|
|
# If not arguments are passed to the script, it will only compile
|
|
# the RNTester.
|
|
# If the script is called with a single argument "test", we'll
|
|
# also run the RNTester integration test (needs JS and packager):
|
|
# ./objc-test-ios.sh test
|
|
|
|
set -ex
|
|
|
|
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
ROOT=$(dirname "$SCRIPTS")
|
|
|
|
cd "$ROOT"
|
|
|
|
export TEST_NAME="iOS"
|
|
export SCHEME="RNTester"
|
|
export SDK="iphonesimulator"
|
|
export DESTINATION="platform=iOS Simulator,name=iPhone XS,OS=12.1"
|
|
|
|
# If there's a "test" argument, pass it to the test script.
|
|
. ./scripts/objc-test.sh $1
|