代码拉取完成,页面将自动刷新
# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
variables:
MIN_VM_IMAGE: macOS-12
MIN_XCODE_VERSION: 13.1
MIN_PLATFORM_VERSION: 15.0
MIN_TV_PLATFORM_VERSION: 15.0
MIN_TV_DEVICE_NAME: Apple TV 4K (2nd generation)
MIN_IPHONE_DEVICE_NAME: iPhone 11
MIN_IPAD_DEVICE_NAME: iPad Pro (11-inch) (3rd generation)
MAX_VM_IMAGE: macOS-12
MAX_XCODE_VERSION: 14.2
MAX_PLATFORM_VERSION: 16.2
MAX_PLATFORM_VERSION_TV: 16.1
MAX_IPHONE_DEVICE_NAME: iPhone 13
MAX_TV_DEVICE_NAME: Apple TV 4K (2nd generation)
MAX_IPAD_DEVICE_NAME: iPad Pro (11-inch) (3rd generation)
DEFAULT_NODE_VERSION: "18.x"
pool:
vmImage: "$(MAX_VM_IMAGE)"
parameters:
- name: integrationJobs
type: object
default:
- action: int_test_1
dest: iphone
- action: int_test_2
dest: iphone
- action: int_test_3
dest: iphone
- action: int_test_1
dest: ipad
- action: int_test_2
dest: ipad
- action: int_test_3
dest: ipad
stages:
- stage: Unit_Tests_And_Linters
jobs:
# region Build
- template: ./azure-templates/base_job.yml
parameters:
name: Generic_iOS_Build_Max_Xcode
action: build
target: runner
sdk: sim
dest: generic
codeSign: no
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: Generic_tvOS_Build_Max_Xcode
action: build
target: tv_runner
sdk: tv_sim
dest: tv_generic
codeSign: no
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Build_Max_Xcode
action: build
target: runner
sdk: sim
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Build_Max_Xcode
action: build
target: tv_runner
sdk: tv_sim
tvModel: $(MAX_TV_DEVICE_NAME)
tvVersion: $(MAX_PLATFORM_VERSION_TV)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: Generic_iOS_Build_Min_Xcode
action: build
target: runner
sdk: sim
dest: generic
codeSign: no
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
extraXcArgs: IPHONEOS_DEPLOYMENT_TARGET=$(MIN_PLATFORM_VERSION)
- template: ./azure-templates/base_job.yml
parameters:
name: Generic_tvOS_Build_Min_Xcode
action: build
target: tv_runner
dest: tv_generic
sdk: tv_sim
codeSign: no
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Build_Min_Xcode
action: build
target: runner
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Build_Min_Xcode
action: build
target: tv_runner
sdk: tv_sim
dest: tv
tvModel: $(MIN_TV_DEVICE_NAME)
tvVersion: $(MIN_TV_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
# endregion
# region Analyze
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Lib_Analyze_Max_Xcode
action: analyze
sdk: sim
target: lib
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Runner_Analyze_Max_Xcode
action: analyze
sdk: sim
target: runner
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Lib_Analyze_Max_Xcode
action: analyze
target: tv_lib
sdk: tv_sim
tvModel: $(MAX_TV_DEVICE_NAME)
tvVersion: $(MAX_PLATFORM_VERSION_TV)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Runner_Analyze_Max_Xcode
action: analyze
target: tv_runner
sdk: tv_sim
tvModel: $(MAX_TV_DEVICE_NAME)
tvVersion: $(MAX_PLATFORM_VERSION_TV)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Lib_Analyze_Min_Xcode
action: analyze
target: lib
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iOS_Runner_Analyze_Min_Xcode
action: analyze
target: runner
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Lib_Analyze_Min_Xcode
action: analyze
target: tv_lib
sdk: tv_sim
tvModel: $(MIN_TV_DEVICE_NAME)
tvVersion: $(MIN_TV_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Runner_Analyze_Min_Xcode
action: analyze
target: tv_runner
sdk: tv_sim
tvModel: $(MIN_TV_DEVICE_NAME)
tvVersion: $(MIN_TV_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
# endregion
# region Unit Tests
- template: ./azure-templates/base_job.yml
parameters:
name: iPhone_Unit_Test_Max_Xcode
action: unit_test
dest: iphone
target: lib
sdk: sim
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iPad_Unit_Test_Max_Xcode
action: unit_test
dest: ipad
target: lib
sdk: sim
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Unit_Test_Max_Xcode
action: tv_unit_test
dest: tv
target: tv_lib
sdk: tv_sim
tvModel: $(MAX_TV_DEVICE_NAME)
tvVersion: $(MAX_PLATFORM_VERSION_TV)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iPhone_Unit_Test_Min_Xcode
action: unit_test
dest: iphone
target: lib
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: iPad_Unit_Test_Min_Xcode
action: unit_test
dest: ipad
target: lib
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
- template: ./azure-templates/base_job.yml
parameters:
name: tvOS_Unit_Test_Min_Xcode
action: tv_unit_test
dest: tv
target: tv_lib
sdk: tv_sim
tvModel: $(MIN_TV_DEVICE_NAME)
tvVersion: $(MIN_TV_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
# endregion
- stage: Integration_Tests
jobs:
# region Integration Tests Max Xcode
- ${{ each job in parameters.integrationJobs }}:
- template: ./azure-templates/base_job.yml
parameters:
name: ${{ job.dest }}_${{ job.action }}_Max_Xcode
action: ${{ job.action }}
dest: ${{ job.dest }}
target: lib
sdk: sim
iphoneModel: $(MAX_IPHONE_DEVICE_NAME)
ipadModel: $(MAX_IPAD_DEVICE_NAME)
iosVersion: $(MAX_PLATFORM_VERSION)
xcodeVersion: $(MAX_XCODE_VERSION)
vmImage: $(MAX_VM_IMAGE)
# endregion
# region Integration Tests Min Xcode
- ${{ each job in parameters.integrationJobs }}:
- template: ./azure-templates/base_job.yml
parameters:
name: ${{ job.dest }}_${{ job.action }}_Min_Xcode
action: ${{ job.action }}
dest: ${{ job.dest }}
target: lib
sdk: sim
iphoneModel: $(MIN_IPHONE_DEVICE_NAME)
ipadModel: $(MIN_IPAD_DEVICE_NAME)
iosVersion: $(MIN_PLATFORM_VERSION)
xcodeVersion: $(MIN_XCODE_VERSION)
vmImage: $(MIN_VM_IMAGE)
# endregion
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。