Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi committed May 16, 2024
1 parent d9dc823 commit 5a99074
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions .ado/jobs/build-test-rntester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,39 +126,37 @@ jobs:
env:
CCACHE_DISABLE: 1

# Upstream React Native seems to not run these tests, and these tests do not work on visionOS currently.
# Let's comment them out and keep watching upstream React Native to see if they are eventually removed.
- ${{ if neq(${{ slice.sdk }}, 'xrsimulator') }}:
- task: ShellScript@2
displayName: 'Setup packager and WebSocket test server'
inputs:
scriptPath: '.ado/scripts/ado-test-setup.sh'
disableAutoCwd: true
cwd: ''

# - task: ShellScript@2
# displayName: 'Setup packager and WebSocket test server'
# inputs:
# scriptPath: '.ado/scripts/ado-test-setup.sh'
# disableAutoCwd: true
# cwd: ''
- bash: |
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: 'curl the packager'
# - bash: |
# 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: 'curl the packager'
- task: CmdLine@2
displayName: Test ${{ slice.scheme }}
inputs:
script: |
set -eox pipefail
./.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test
env:
CCACHE_DISABLE: 1

# - task: CmdLine@2
# displayName: Test ${{ slice.scheme }}
# inputs:
# script: |
# set -eox pipefail
# ./.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test
# env:
# CCACHE_DISABLE: 1

# - task: ShellScript@2
# displayName: 'Cleanup packager and WebSocket test server'
# inputs:
# scriptPath: '.ado/scripts/ado-test-cleanup.sh'
# disableAutoCwd: true
# cwd: ''
# condition: always()
- task: ShellScript@2
displayName: 'Cleanup packager and WebSocket test server'
inputs:
scriptPath: '.ado/scripts/ado-test-cleanup.sh'
disableAutoCwd: true
cwd: ''
condition: always()

0 comments on commit 5a99074

Please sign in to comment.