react-native-macos/.ado/templates/apple-job-react-native.yml

83 строки
2.4 KiB
YAML

parameters:
packager_platform: ''
xcode_sdk: ''
xcode_configuration: ''
xcode_scheme: ''
xcode_actions_debug: ''
xcode_actions_release: ''
xcode_destination: ''
apply_office_patches: ''
steps:
# Clean DerivedData
- script: |
rm -rf $(Build.Repository.LocalPath)/DerivedData
displayName: 'Clean DerivedData'
# Install the required components specified in the Brewfile file.
- script: 'brew bundle'
displayName: 'brew bundle'
- script: brew link node@10 --overwrite --force
# Task Group: XCode select proper version
- template: apple-xcode-select.yml
- template: apple-droid-node-patching.yml
parameters:
apply_office_patches: $(apply_office_patches)
- task: CmdLine@2
displayName: yarn install
inputs:
script: yarn install
- task: CmdLine@2
displayName: pod install
inputs:
script: |
cd RNTester
pod install
- task: ShellScript@2
displayName: 'Setup packager and WebSocket test server'
inputs:
scriptPath: '.ado/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/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null
env:
PLATFORM: ${{ parameters.packager_platform }}
displayName: 'curl the packager'
- template: apple-xcode-build.yml
parameters:
xcode_sdk: ${{ parameters.xcode_sdk }}
xcode_configuration: Debug
xcode_workspacePath: RNTester/RNTesterPods.xcworkspace
xcode_scheme: ${{ parameters.xcode_scheme }}
xcode_actions: ${{ parameters.xcode_actions_debug }}
xcode_useXcpretty: true
xcode_destination: ${{ parameters.xcode_destination }}
- template: apple-xcode-build.yml
parameters:
xcode_sdk: ${{ parameters.xcode_sdk }}
xcode_configuration: Release
xcode_workspacePath: RNTester/RNTesterPods.xcworkspace
xcode_scheme: ${{ parameters.xcode_scheme }}
xcode_actions: ${{ parameters.xcode_actions_release }}
xcode_useXcpretty: false
xcode_destination: ${{ parameters.xcode_destination }}
- task: ShellScript@2
displayName: 'Cleanup packager and WebSocket test server'
inputs:
scriptPath: '.ado/ado-test-cleanup.sh'
disableAutoCwd: true
cwd: ''
condition: always()