Files
react-native/packages/react-native/scripts/run_ruby_tests.sh
T
Riccardo Cipolleschi d3c94b42f4 Fix Cocoapods for Xcode 14.3.0 (#36759)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/36759

On Thursday the 30th, Apple Released Xcode 14.3.0.
This Version of Xcode enforce some version checks for which React-Codegen, which supported iOS 11 as minimum supported version, could not be build anymore.

This change ensue that React-Codegen is always aligned to the min version supported by React Native.
Plus, it moves CircleCI's Xcode to 14.3.0, to keep this problem in Check.

While working on this, I figured that, with the monorepo, Ruby tests stopped working because they were in the wrong folder: I moved them in the right one.

## Changelog:
[iOS][Fixed] - Make React Native build with Xcode 14.3.0 and fix tests

Reviewed By: blakef

Differential Revision: D44605617

fbshipit-source-id: 3ec1f5b36858ef07d9f713d74eb411a1edcccd45
2023-04-03 15:19:06 +01:00

30 lines
659 B
Bash
Executable File

#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
set -f
basepath=$(dirname "${0}")
# shellcheck disable=SC2207
files=( $(find . -name '*-test.rb') )
test_suite="${basepath}/all_tests.rb"
touch "${test_suite}"
echo "require \"test/unit\"" > "${test_suite}"
echo "discovered the following files:"
for i in "${files[@]}"
do
filename="${i#"${basepath}/"}"
echo "${filename}"
echo "require_relative \"${filename}\"" >> "${test_suite}"
done
ruby -Itest "${test_suite}"
RES=$?
rm "${test_suite}"
exit $RES