2019-03-05 00:27:54 +03:00
|
|
|
# This file defines the Apple PR build steps used during the CI loop
|
|
|
|
name: $(Date:yyyyMMdd).$(Rev:.r)
|
|
|
|
|
2020-04-07 21:08:40 +03:00
|
|
|
variables:
|
2022-02-04 19:37:15 +03:00
|
|
|
- template: variables/vars.yml
|
2020-04-07 21:08:40 +03:00
|
|
|
|
2019-03-05 00:27:54 +03:00
|
|
|
trigger: none # will disable CI builds entirely
|
|
|
|
|
|
|
|
pr:
|
2020-05-06 23:35:21 +03:00
|
|
|
branches:
|
|
|
|
include:
|
2022-01-07 00:24:34 +03:00
|
|
|
- main
|
2021-02-12 09:42:31 +03:00
|
|
|
- '*-stable'
|
2020-05-06 23:35:21 +03:00
|
|
|
paths:
|
|
|
|
exclude:
|
|
|
|
- '*.md'
|
2019-03-05 00:27:54 +03:00
|
|
|
|
|
|
|
jobs:
|
2019-12-02 01:35:18 +03:00
|
|
|
- job: JavaScriptRNPR
|
|
|
|
displayName: JavaScript React Native PR
|
|
|
|
pool:
|
2022-02-04 19:37:15 +03:00
|
|
|
vmImage: $(VmImageApple)
|
2019-12-02 01:35:18 +03:00
|
|
|
demands: ['xcode', 'sh', 'npm']
|
|
|
|
steps:
|
|
|
|
- template: templates/apple-job-javascript.yml
|
2020-03-19 04:20:08 +03:00
|
|
|
parameters:
|
2021-03-17 21:41:57 +03:00
|
|
|
slice_name: $(slice_name)
|
|
|
|
xcode_version: $(xcode_version)
|
2019-12-02 01:35:18 +03:00
|
|
|
|
2019-03-05 00:27:54 +03:00
|
|
|
- job: AppleRNPR
|
|
|
|
displayName: Apple React Native PR
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ios:
|
|
|
|
packager_platform: 'ios'
|
|
|
|
xcode_sdk: iphonesimulator
|
|
|
|
xcode_scheme: 'RNTester'
|
2022-12-14 23:55:32 +03:00
|
|
|
xcode_destination: 'platform=iOS Simulator,OS=latest,name=iPhone 14'
|
2019-10-25 22:26:06 +03:00
|
|
|
xcode_actions_debug: 'build test'
|
|
|
|
xcode_actions_release: 'build'
|
2019-03-05 00:27:54 +03:00
|
|
|
macos:
|
|
|
|
packager_platform: 'macos'
|
|
|
|
xcode_sdk: macosx
|
|
|
|
xcode_scheme: 'RNTester-macOS'
|
|
|
|
xcode_destination: 'platform=macOS,arch=x86_64'
|
2019-11-12 04:15:26 +03:00
|
|
|
xcode_actions_debug: 'build test'
|
2019-10-25 22:26:06 +03:00
|
|
|
xcode_actions_release: 'build'
|
2019-03-05 00:27:54 +03:00
|
|
|
pool:
|
2022-02-04 19:37:15 +03:00
|
|
|
vmImage: $(VmImageApple)
|
2019-03-05 00:27:54 +03:00
|
|
|
demands: ['xcode', 'sh', 'npm']
|
|
|
|
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:
|
|
|
|
- template: templates/apple-job-react-native.yml
|
|
|
|
parameters:
|
|
|
|
packager_platform: $(packager_platform)
|
|
|
|
xcode_sdk: $(xcode_sdk)
|
|
|
|
xcode_configuration: $(xcode_configuration)
|
|
|
|
xcode_scheme: $(xcode_scheme)
|
2019-10-25 22:26:06 +03:00
|
|
|
xcode_actions_debug: $(xcode_actions_debug)
|
|
|
|
xcode_actions_release: $(xcode_actions_release)
|
2019-03-05 00:27:54 +03:00
|
|
|
xcode_destination: $(xcode_destination)
|
2021-03-17 21:41:57 +03:00
|
|
|
slice_name: $(slice_name)
|
|
|
|
xcode_version: $(xcode_version)
|
2020-04-07 21:08:40 +03:00
|
|
|
|
|
|
|
- job: CliInit
|
|
|
|
displayName: Verify react-native-macos-init
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
MacDebug:
|
|
|
|
configuration: Debug
|
|
|
|
pool:
|
2022-02-04 19:37:15 +03:00
|
|
|
vmImage: $(VmImageApple)
|
2020-04-07 21:08:40 +03:00
|
|
|
demands: ['xcode', 'sh', 'npm']
|
|
|
|
steps:
|
|
|
|
- template: templates/react-native-macos-init.yml
|
|
|
|
parameters:
|
|
|
|
configuration: $(configuration)
|