This commit is contained in:
Saad Najmi 2024-11-29 05:12:50 -08:00 коммит произвёл GitHub
Родитель a9c86497f8
Коммит 49ce1d304b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 32 добавлений и 30 удалений

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

@ -129,37 +129,39 @@ jobs:
CCACHE_DISABLE: 1
displayName: Build ${{ slice.scheme }}
# Skip testing on visionOS via the conditions below
- ${{ if ne(slice.scheme, 'RNTester-visionOS') }}:
- task: ShellScript@2
displayName: Setup packager and WebSocket test server
inputs:
scriptPath: .ado/scripts/ado-test-setup.sh
disableAutoCwd: true
cwd: ''
# https://github.com/microsoft/react-native-macos/issues/2297
# Skip native tests as they tend to be flaky
- script: |
echo Preparing the packager for platform $PLATFORM
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true&minify=false" -o /dev/null
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
env:
PLATFORM: ${{ slice.packager_platform }}
displayName: Fetch JS bundles from dev server
# - ${{ if ne(slice.scheme, 'RNTester-visionOS') }}:
# - task: ShellScript@2
# displayName: Setup packager and WebSocket test server
# inputs:
# scriptPath: .ado/scripts/ado-test-setup.sh
# disableAutoCwd: true
# cwd: ''
- script: |
set -eox pipefail
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test
env:
CCACHE_DISABLE: 1
displayName: Test ${{ slice.scheme }}
# - script: |
# echo Preparing the packager for platform $PLATFORM
# curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
# curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true&minify=false" -o /dev/null
# curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
# curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
# env:
# PLATFORM: ${{ slice.packager_platform }}
# displayName: Fetch JS bundles from dev server
- task: ShellScript@2
displayName: Cleanup packager and WebSocket test server
inputs:
scriptPath: .ado/scripts/ado-test-cleanup.sh
disableAutoCwd: true
cwd: ''
condition: always()
# - script: |
# set -eox pipefail
# .ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test
# env:
# CCACHE_DISABLE: 1
# displayName: Test ${{ slice.scheme }}
# - task: ShellScript@2
# displayName: Cleanup packager and WebSocket test server
# inputs:
# scriptPath: .ado/scripts/ado-test-cleanup.sh
# disableAutoCwd: true
# cwd: ''
# condition: always()