scalar/.azure-pipelines/pull-request.yml

96 строки
2.4 KiB
YAML

trigger:
- master
- releases/*
pr:
- master
- milestones/*
- releases/*
- servicing/*
variables:
- group: apple-development
- name: branchCounter
value: $[counter(variables['Build.SourceBranch'], 0)]
- name: configuration
value: Release
jobs:
- job: win_build
displayName: Windows Build and Unit Test
pool:
vmImage: windows-2019
steps:
- powershell: Scripts/CI/Set-Version.ps1 -SourceBranchCounter $(branchCounter)
displayName: "Compute product version"
- template: templates/win/build-and-unit-test.yml
- template: templates/win/pack.unsigned.yml
- job: osx_build
displayName: macOS Build and Unit Test
pool:
name: 'Hosted macOS'
steps:
- powershell: Scripts/CI/Set-Version.ps1 -SourceBranchCounter $(branchCounter)
displayName: "Compute product version"
- template: templates/osx/build-and-unit-test.yml
- template: templates/osx/pack.unsigned.yml
- job: win_functionaltest
displayName: Windows Functional Test
timeoutInMinutes: 45
variables:
configuration: Release
pool:
vmImage: windows-2019
dependsOn: win_build
condition: succeeded()
steps:
- checkout: none
- template: templates/win/functional-test.yml
parameters:
useWatchman: false
- job: win_functionaltest_watchman
displayName: Windows Functional Test (with Watchman)
timeoutInMinutes: 45
variables:
configuration: Release
pool:
vmImage: windows-2019
dependsOn: win_build
condition: succeeded()
steps:
- checkout: none
- template: templates/win/functional-test.yml
parameters:
useWatchman: true
- job: osx_functionaltest
displayName: macOS Functional Test
timeoutInMinutes: 45
pool:
name: 'Hosted macOS'
dependsOn: osx_build
condition: succeeded()
steps:
- checkout: none
- template: templates/osx/functional-test.yml
parameters:
useWatchman: false
- job: osx_functionaltest_watchman
displayName: macOS Functional Test (with Watchman)
variables:
configuration: Release
timeoutInMinutes: 30
pool:
name: 'Hosted macOS'
dependsOn: osx_build
condition: succeeded()
steps:
- checkout: none
- template: templates/osx/functional-test.yml
parameters:
useWatchman: true