This commit is contained in:
Youssef Victor 2024-06-08 10:11:41 +03:00 коммит произвёл GitHub
Родитель f9e021c25f
Коммит 0e3fbc3540
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -26,7 +26,7 @@ export UNO_UITEST_NUGET_URL=https://dist.nuget.org/win-x86-commandline/v5.7.0/nu
export UNO_ORIGINAL_TEST_RESULTS=$BUILD_SOURCESDIRECTORY/build/$UNO_TEST_RESULTS_FILE_NAME export UNO_ORIGINAL_TEST_RESULTS=$BUILD_SOURCESDIRECTORY/build/$UNO_TEST_RESULTS_FILE_NAME
export UNO_UITEST_RUNTIMETESTS_RESULTS_FILE_PATH=$UNO_ORIGINAL_TEST_RESULTS export UNO_UITEST_RUNTIMETESTS_RESULTS_FILE_PATH=$UNO_ORIGINAL_TEST_RESULTS
export UNO_TESTS_RESPONSE_FILE=$BUILD_SOURCESDIRECTORY/build/nunit.response export UNO_TESTS_RESPONSE_FILE=$BUILD_SOURCESDIRECTORY/build/nunit.response
export UNO_UITEST_SIMULATOR_VERSION="com.apple.CoreSimulator.SimRuntime.iOS-17-0" export UNO_UITEST_SIMULATOR_VERSION="com.apple.CoreSimulator.SimRuntime.iOS-17-2"
export UNO_UITEST_SIMULATOR_NAME="iPad Pro (12.9-inch) (6th generation)" export UNO_UITEST_SIMULATOR_NAME="iPad Pro (12.9-inch) (6th generation)"
export UITEST_TEST_TIMEOUT=120m export UITEST_TEST_TIMEOUT=120m
@ -46,10 +46,10 @@ dotnet build -f net8.0-ios -c Release /p:RuntimeIdentifier=iossimulator-x64 /p:I
## Pre-install the application to avoid https://github.com/microsoft/appcenter/issues/2389 ## Pre-install the application to avoid https://github.com/microsoft/appcenter/issues/2389
## ##
## Install iOS 17.0 simulators ## Install iOS 17.2 simulators
xcodes runtimes install --keep-archive 'iOS 17.0' || true xcodes runtimes install --keep-archive 'iOS 17.2' || true
# Wait while ios runtime 17.0 is not having simulators. The install process may # Wait while ios runtime 17.2 is not having simulators. The install process may
# take a few seconds and "simctl list devices" may not return devices. # take a few seconds and "simctl list devices" may not return devices.
while true; do while true; do
export UITEST_IOSDEVICE_ID=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .udid'` export UITEST_IOSDEVICE_ID=`xcrun simctl list -j | jq -r --arg sim "$UNO_UITEST_SIMULATOR_VERSION" --arg name "$UNO_UITEST_SIMULATOR_NAME" '.devices[$sim] | .[] | select(.name==$name) | .udid'`