2020-04-21 17:12:21 -07:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
variables:
|
2021-09-11 13:43:19 -07:00
|
|
|
windows-pool: 'PrWin-2021-09-08'
|
|
|
|
linux-pool: 'PrLin-2021-09-08'
|
2021-08-04 13:27:40 -07:00
|
|
|
osx-pool: 'PrOsx-2021-07-27'
|
2020-06-11 11:13:09 -07:00
|
|
|
|
2020-07-07 14:09:33 -07:00
|
|
|
stages:
|
2020-12-16 13:14:35 -08:00
|
|
|
- stage: FormatChecks
|
|
|
|
displayName: 'Formatting and Documentation Checks'
|
2020-07-07 14:09:33 -07:00
|
|
|
pool: $(windows-pool)
|
|
|
|
jobs:
|
|
|
|
- job:
|
2020-07-09 12:32:31 -07:00
|
|
|
workspace:
|
|
|
|
clean: resources
|
2020-12-16 13:14:35 -08:00
|
|
|
variables:
|
|
|
|
- name: VCPKG_DOWNLOADS
|
|
|
|
value: D:\downloads
|
|
|
|
- name: DiffFile
|
|
|
|
value: $(Build.ArtifactStagingDirectory)\format.diff
|
2020-07-07 14:09:33 -07:00
|
|
|
steps:
|
|
|
|
- task: Powershell@2
|
2020-12-16 13:14:35 -08:00
|
|
|
displayName: 'Generate Documentation'
|
2020-07-07 14:09:33 -07:00
|
|
|
inputs:
|
2020-12-16 13:14:35 -08:00
|
|
|
filePath: 'docs/regenerate.ps1'
|
|
|
|
arguments: '-VcpkgRoot . -WarningAction Stop'
|
2020-08-27 12:27:39 -07:00
|
|
|
pwsh: true
|
2020-12-16 13:14:35 -08:00
|
|
|
- script: .\bootstrap-vcpkg.bat
|
2021-02-04 10:15:44 -08:00
|
|
|
displayName: 'Bootstrap vcpkg'
|
|
|
|
- script: '.\vcpkg.exe format-manifest --all'
|
2020-12-16 13:14:35 -08:00
|
|
|
displayName: 'Format Manifests'
|
2020-12-01 13:37:26 -08:00
|
|
|
- task: Powershell@2
|
2020-12-16 13:14:35 -08:00
|
|
|
displayName: 'Create Diff'
|
2020-12-01 13:37:26 -08:00
|
|
|
inputs:
|
2021-02-04 10:15:44 -08:00
|
|
|
filePath: scripts/azure-pipelines/Create-PRDiff.ps1
|
2020-12-16 13:14:35 -08:00
|
|
|
arguments: '-DiffFile $(DiffFile)'
|
2020-12-01 13:37:26 -08:00
|
|
|
pwsh: true
|
2020-12-16 13:14:35 -08:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: failed()
|
2021-02-04 10:15:44 -08:00
|
|
|
displayName: 'Publish Format and Documentation Diff'
|
2020-12-16 13:14:35 -08:00
|
|
|
inputs:
|
|
|
|
PathtoPublish: '$(DiffFile)'
|
|
|
|
ArtifactName: 'format.diff'
|
|
|
|
- stage: RunPrTests
|
|
|
|
displayName: 'Run PR Tests:'
|
|
|
|
dependsOn: FormatChecks
|
2020-07-07 14:09:33 -07:00
|
|
|
jobs:
|
2020-06-25 22:19:17 -07:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x86-windows
|
|
|
|
jobName: x86_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows
|
|
|
|
jobName: x64_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows-static
|
|
|
|
jobName: x64_windows_static
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
2021-01-08 11:55:31 -08:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-windows-static-md
|
|
|
|
jobName: x64_windows_static_md
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
2020-06-25 22:19:17 -07:00
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: x64-uwp
|
|
|
|
jobName: x64_uwp
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: arm64-windows
|
|
|
|
jobName: arm64_windows
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: windows/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
triplet: arm-uwp
|
|
|
|
jobName: arm_uwp
|
|
|
|
poolName: $(windows-pool)
|
|
|
|
|
|
|
|
- template: osx/azure-pipelines.yml
|
2020-09-24 15:15:06 -07:00
|
|
|
parameters:
|
|
|
|
poolName: $(osx-pool)
|
2020-06-25 22:19:17 -07:00
|
|
|
|
|
|
|
- template: linux/azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
poolName: $(linux-pool)
|