forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
254 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
parameters: | ||
- name: appleBuildMatrix | ||
type: object | ||
default: | ||
- name: iphoneos_debug | ||
friendly_name: 'iOS Debug' | ||
sdk: iphoneos | ||
configuration: Debug | ||
project_directory: 'packages/react-native-community/ios' | ||
xcconfig: 'SDX_overrides_ios_device.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: iphoneos_release | ||
friendly_name: 'iOS Release' | ||
sdk: iphoneos | ||
configuration: Release | ||
project_directory: 'packages/react-native-community/ios' | ||
xcconfig: 'SDX_overrides_ios_device.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: iphonesimulator_debug | ||
friendly_name: 'iOS Simulator Debug' | ||
sdk: iphonesimulator | ||
configuration: Debug | ||
project_directory: 'packages/react-native-community/ios' | ||
xcconfig: 'SDX__common.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: iphonesimulator_release | ||
friendly_name: 'iOS Simulator Release' | ||
sdk: iphonesimulator | ||
configuration: Release | ||
project_directory: 'packages/react-native-community/ios' | ||
xcconfig: 'SDX__common.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: macosx_debug | ||
friendly_name: 'macOS Debug' | ||
sdk: macosx | ||
configuration: Debug | ||
project_directory: 'packages/react-native-community/macos' | ||
xcconfig: 'SDX_overrides_macos.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: macosx_release | ||
friendly_name: 'macOS Release' | ||
sdk: macosx | ||
configuration: Release | ||
project_directory: 'packages/react-native-community/macos' | ||
xcconfig: 'SDX_overrides_macos.xcconfig' | ||
vmImage: $(VmImageApple) | ||
- name: visionos_debug | ||
friendly_name: 'visionOS Debug' | ||
sdk: xros | ||
configuration: Debug | ||
project_directory: 'packages/react-native-community/visionos' | ||
xcconfig: 'SDX_overrides_ios_device.xcconfig' | ||
- name: visionos_release | ||
friendly_name: 'visionOS Release' | ||
sdk: xros | ||
configuration: Release | ||
project_directory: 'packages/react-native-community/visionos' | ||
xcconfig: 'SDX_overrides_ios_device.xcconfig' | ||
- name: visionsimulator_debug | ||
friendly_name: 'visionOS Simulator Debug' | ||
sdk: xrsimulator | ||
configuration: Debug | ||
project_directory: 'packages/react-native-community/visionos' | ||
xcconfig: 'SDX__common.xcconfig' | ||
- name: visionsimulator_release | ||
friendly_name: 'visionOS Simulator Release' | ||
sdk: xrsimulator | ||
configuration: Release | ||
project_directory: 'packages/react-native-community/visionos' | ||
xcconfig: 'SDX__common.xcconfig' | ||
|
||
- ${{ each slice in parameters.appleBuildMatrix }}: | ||
- job: ${{ slice.name }} | ||
displayName: ${{ slice.friendly_name }} | ||
pool: | ||
vmImage: ${{ slice.vmImage }} | ||
timeoutInMinutes: 90 | ||
cancelTimeoutInMinutes: 5 | ||
steps: | ||
- template: /.ado/templates/apple-tools-setup.yml@self | ||
|
||
- task: CmdLine@2 | ||
displayName: yarn install | ||
inputs: | ||
script: yarn install --immutable | ||
|
||
- task: CmdLine@2 | ||
displayName: pod install | ||
inputs: | ||
script: | | ||
cd packages/rn-tester | ||
bundle install | ||
bundle exec pod install | ||
env: | ||
RCT_NEW_ARCH_ENABLED: $(new_arch_enabled) | ||
USE_HERMES: $(use_hermes) | ||
|
||
- 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/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: ${{ parameters.packager_platform }} | ||
displayName: 'curl the packager' | ||
- template: /.ado/templates/apple-xcode-build.yml@self | ||
parameters: | ||
xcode_sdk: ${{ parameters.xcode_sdk }} | ||
xcode_workspacePath: packages/rn-tester/RNTesterPods.xcworkspace | ||
xcode_scheme: ${{ parameters.xcode_scheme }} | ||
xcode_actions: 'build' | ||
xcode_extraArgs: ${{ parameters.xcode_extraArgs }} | ||
|
||
- template: /.ado/templates/apple-xcode-build.yml@self | ||
parameters: | ||
xcode_sdk: ${{ parameters.xcode_sdk }} | ||
xcode_workspacePath: packages/rn-tester/RNTesterPods.xcworkspace | ||
xcode_scheme: ${{ parameters.xcode_scheme }} | ||
xcode_actions: 'test' | ||
xcode_extraArgs: ${{ parameters.xcode_extraArgs }} | ||
|
||
- task: ShellScript@2 | ||
displayName: 'Cleanup packager and WebSocket test server' | ||
inputs: | ||
scriptPath: '.ado/ado-test-cleanup.sh' | ||
disableAutoCwd: true | ||
cwd: '' | ||
condition: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- job: NPMPublishDryRun | ||
displayName: NPM Publish Dry Run | ||
pool: | ||
vmImage: $(VmImageApple) | ||
timeoutInMinutes: 60 # how long to run the job before automatically cancelling | ||
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them | ||
steps: | ||
- checkout: self # self represents the repo where the initial Pipelines YAML file was found | ||
clean: true # whether to fetch clean each time | ||
# fetchDepth: 2 # the depth of commits to ask Git to fetch | ||
lfs: false # whether to download Git-LFS files | ||
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules | ||
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch | ||
|
||
- template: /.ado/templates/apple-job-publish.yml@self | ||
parameters: | ||
build_type: 'dry-run' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
jobs: | ||
- job: JavaScriptPR | ||
displayName: Javascript PR | ||
pool: | ||
vmImage: $(VmImageApple) | ||
steps: | ||
- template: /.ado/templates/apple-tools-setup.yml@self | ||
|
||
- task: CmdLine@2 | ||
displayName: yarn install | ||
inputs: | ||
script: yarn install --immutable | ||
|
||
- task: CmdLine@2 | ||
displayName: yarn test-ci [test] | ||
inputs: | ||
script: 'yarn test-ci' | ||
|
||
- script: 'yarn flow-check' | ||
displayName: 'yarn flow-check' | ||
|
||
- script: 'yarn lint' | ||
displayName: 'yarn lint' | ||
|
||
- script: 'yarn format-check' | ||
displayName: 'yarn format-check' |
Oops, something went wrong.