mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9ece5bda9b
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/25416 Use CocoaPods-based RNTesterPods workspace to run iOS unit tests and integration tests. This is necessary as new iOS projects now use CocoaPods by default. CocoaPods also powers the new package auto-linking feature. In order to provide test coverage for this new default configuration, our iOS tests are being migrated to use a CocoaPods-managed RNTester workspace. This applies to both Circle CI, and Sandcastle. Changelog: [iOS] [Changed] - Use RNTesterPods for iOS Tests Reviewed By: fkgozali Differential Revision: D16052466 fbshipit-source-id: 724b0c51008882d3c06a9074693fe23e74abe86b
25 lines
866 B
Bash
Executable File
25 lines
866 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.
|
|
|
|
# scripts directory
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
REACT_NATIVE_ROOT="$THIS_DIR/.."
|
|
# Application root directory - General use case: react-native is a dependency
|
|
PROJECT_ROOT="$THIS_DIR/../../.."
|
|
|
|
# check and assign NODE_BINARY env
|
|
# shellcheck disable=SC1090
|
|
source "${THIS_DIR}/node-binary.sh"
|
|
|
|
# When running react-native tests, react-native doesn't live in node_modules but in the PROJECT_ROOT
|
|
if [ ! -d "$PROJECT_ROOT/node_modules/react-native" ];
|
|
then
|
|
PROJECT_ROOT="$THIS_DIR/.."
|
|
fi
|
|
# Start packager from PROJECT_ROOT
|
|
cd "$PROJECT_ROOT" || exit
|
|
"$NODE_BINARY" "$REACT_NATIVE_ROOT/cli.js" start "$@"
|