|
| 1 | +parameters: |
| 2 | + packager_platform: '' |
| 3 | + xcode_sdk: '' |
| 4 | + xcode_configuration: '' |
| 5 | + xcode_scheme: '' |
| 6 | + xcode_actions: '' |
| 7 | + xcode_destination: '' |
| 8 | + |
| 9 | +steps: |
| 10 | + # Clean DerivedData |
| 11 | + - script: | |
| 12 | + rm -rf $(Build.Repository.LocalPath)/DerivedData |
| 13 | + displayName: 'Clean DerivedData' |
| 14 | +
|
| 15 | + # Install the required components specified in the Brewfile file. |
| 16 | + - script: 'brew bundle' |
| 17 | + displayName: 'brew bundle' |
| 18 | + |
| 19 | + # Task Group: XCode select proper version |
| 20 | + - template: apple-xcode-select.yml |
| 21 | + |
| 22 | + # Task Group: ISS Install Apple certs and provisioning profiles |
| 23 | + - template: apple-install-certs.yml |
| 24 | + |
| 25 | + - task: CmdLine@2 |
| 26 | + displayName: npm install |
| 27 | + inputs: |
| 28 | + script: npm install |
| 29 | + |
| 30 | + - task: ShellScript@2 |
| 31 | + displayName: 'Setup packager and WebSocket test server' |
| 32 | + inputs: |
| 33 | + scriptPath: '.ado/ado-test-setup.sh' |
| 34 | + disableAutoCwd: true |
| 35 | + cwd: '' |
| 36 | + |
| 37 | + - bash: | |
| 38 | + echo Preparing the packager for platform $PLATFORM |
| 39 | + 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 |
| 40 | + env: |
| 41 | + PLATFORM: ${{ parameters.packager_platform }} |
| 42 | + displayName: 'curl the packager' |
| 43 | +
|
| 44 | + - template: apple-xcode-build.yml |
| 45 | + parameters: |
| 46 | + xcode_sdk: ${{ parameters.xcode_sdk }} |
| 47 | + xcode_configuration: Debug |
| 48 | + xcode_workspacePath: RNTester/RNTester.xcodeproj |
| 49 | + xcode_scheme: ${{ parameters.xcode_scheme }} |
| 50 | + xcode_actions: 'build test' |
| 51 | + xcode_useXcpretty: true |
| 52 | + xcode_destination: ${{ parameters.xcode_destination }} |
| 53 | + |
| 54 | + - template: apple-xcode-build.yml |
| 55 | + parameters: |
| 56 | + xcode_sdk: ${{ parameters.xcode_sdk }} |
| 57 | + xcode_configuration: Release |
| 58 | + xcode_workspacePath: RNTester/RNTester.xcodeproj |
| 59 | + xcode_scheme: ${{ parameters.xcode_scheme }} |
| 60 | + xcode_actions: 'build' |
| 61 | + xcode_useXcpretty: false |
| 62 | + xcode_destination: ${{ parameters.xcode_destination }} |
| 63 | + |
| 64 | + - task: ShellScript@2 |
| 65 | + displayName: 'Cleanup packager and WebSocket test server' |
| 66 | + inputs: |
| 67 | + scriptPath: '.ado/ado-test-cleanup.sh' |
| 68 | + disableAutoCwd: true |
| 69 | + cwd: '' |
| 70 | + condition: always() |
0 commit comments