2020-08-26 01:12:02 +03:00
|
|
|
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases for info on yaml ADO jobs
|
|
|
|
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
|
|
|
|
variables:
|
|
|
|
minimumExpectedTestsExecutedCount: 500 # Sanity check for minimum expected tests to be reported
|
|
|
|
rerunPassesRequiredToAvoidFailure: 5
|
2020-12-04 00:44:07 +03:00
|
|
|
|
2020-08-26 01:12:02 +03:00
|
|
|
jobs:
|
|
|
|
- job: Build
|
|
|
|
pool:
|
|
|
|
vmImage: 'windows-2019'
|
|
|
|
timeoutInMinutes: 120
|
|
|
|
strategy:
|
|
|
|
maxParallel: 10
|
|
|
|
matrix:
|
|
|
|
Debug_x86:
|
|
|
|
buildPlatform: 'x86'
|
|
|
|
buildConfiguration: 'Debug'
|
|
|
|
Release_x86:
|
|
|
|
buildPlatform: 'x86'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
PGOBuildMode: 'Optimize'
|
|
|
|
Release_x64:
|
|
|
|
buildPlatform: 'x64'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
PGOBuildMode: 'Optimize'
|
|
|
|
Release_Arm64:
|
|
|
|
buildPlatform: 'arm64'
|
|
|
|
buildConfiguration: 'Release'
|
|
|
|
|
|
|
|
variables:
|
|
|
|
appxPackageDir : $(build.artifactStagingDirectory)\$(buildConfiguration)\$(buildPlatform)\AppxPackages
|
|
|
|
buildOutputDir : $(Build.SourcesDirectory)\BuildOutput
|
|
|
|
publishDir : $(Build.ArtifactStagingDirectory)
|
|
|
|
steps:
|
2020-12-04 00:44:07 +03:00
|
|
|
- task: NuGetAuthenticate@0
|
|
|
|
inputs:
|
|
|
|
nuGetServiceConnections: 'WindowsES'
|
2020-08-26 01:12:02 +03:00
|
|
|
- template: AzurePipelinesTemplates\ProjectReunion-BuildDevProject-Steps.yml
|
|
|
|
- template: AzurePipelinesTemplates\ProjectReunion-PublishProjectOutput-Steps.yml
|
|
|
|
|
2020-11-13 02:42:27 +03:00
|
|
|
# MRTCore build pipeline
|
|
|
|
- template: ..\dev\MRTCore\azure-pipelines.yml
|
|
|
|
parameters:
|
|
|
|
buildJobName: 'BuildMRTCore'
|
|
|
|
|
2020-10-20 20:27:16 +03:00
|
|
|
- template: AzurePipelinesTemplates\ProjectReunion-RunHelixTests-Job.yml
|
|
|
|
parameters:
|
|
|
|
name: 'RunTestsInHelix'
|
2020-11-13 02:42:27 +03:00
|
|
|
dependsOn:
|
|
|
|
- Build
|
2020-10-20 20:27:16 +03:00
|
|
|
condition: in(dependencies.Build.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
|
|
|
|
testSuite: 'DevTestSuite'
|
|
|
|
rerunPassesRequiredToAvoidFailure: $(rerunPassesRequiredToAvoidFailure)
|
|
|
|
|
|
|
|
- template: AzurePipelinesTemplates\ProjectReunion-ProcessTestResults-Job.yml
|
|
|
|
parameters:
|
|
|
|
dependsOn: RunTestsInHelix
|
|
|
|
rerunPassesRequiredToAvoidFailure: $(rerunPassesRequiredToAvoidFailure)
|
2020-10-27 19:25:18 +03:00
|
|
|
minimumExpectedTestsExecutedCount: 2
|
2020-10-20 20:27:16 +03:00
|
|
|
|
2020-08-26 01:12:02 +03:00
|
|
|
# Create Nuget Package
|
|
|
|
- template: AzurePipelinesTemplates\ProjectReunion-CreateNugetPackage-Job.yml
|
|
|
|
parameters:
|
|
|
|
jobName: CreateNugetPackage
|
2020-10-22 02:07:27 +03:00
|
|
|
dependsOn:
|
|
|
|
- Build
|
|
|
|
- PublishMRT
|
2020-08-26 01:12:02 +03:00
|
|
|
prereleaseVersionTag: ci
|
2020-10-22 02:07:27 +03:00
|
|
|
condition: |
|
|
|
|
and
|
|
|
|
(
|
|
|
|
in(dependencies.PublishMRT.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
|
|
|
|
in(dependencies.Build.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
|
|
|
|
)
|
2020-08-26 01:12:02 +03:00
|
|
|
|
|
|
|
# Build solution that depends on nuget package
|
|
|
|
#- template: AzurePipelinesTemplates\ProjectReunion-NugetReleaseTest-Job.yml
|
|
|
|
# parameters:
|
|
|
|
# buildJobName: 'BuildNugetPkgTests'
|
|
|
|
# buildArtifactName: 'NugetPkgTestsDrop'
|
|
|
|
# runTestJobName: 'RunNugetPkgTestsInHelix'
|
|
|
|
# helixType: 'test/nuget'
|
|
|
|
# dependsOn: CreateNugetPackage
|
|
|
|
# pkgArtifactPath: '$(artifactDownloadPath)\drop'
|
|
|
|
|
|
|
|
#UNDONE - depends on Helix infrastructure, subsequent PR
|
|
|
|
# Framework package tests
|
|
|
|
#- template: AzurePipelinesTemplates\ProjectReunion-NugetReleaseTest-Job.yml
|
|
|
|
# parameters:
|
|
|
|
# buildJobName: 'BuildFrameworkPkgTests'
|
|
|
|
# buildArtifactName: 'FrameworkPkgTestsDrop'
|
|
|
|
# runTestJobName: 'RunFrameworkPkgTestsInHelix'
|
|
|
|
# helixType: 'test/frpkg'
|
|
|
|
# dependsOn: CreateNugetPackage
|
|
|
|
# pkgArtifactPath: '$(artifactDownloadPath)\drop\FrameworkPackage'
|
|
|
|
|
|
|
|
#UNDONE - subsequent PR
|
|
|
|
#- template: AzurePipelinesTemplates\ProjectReunion-ProcessTestResults-Job.yml
|
|
|
|
# parameters:
|
|
|
|
# dependsOn:
|
|
|
|
# - RunTestsInHelix
|
|
|
|
# - RunNugetPkgTestsInHelix
|
|
|
|
# - RunFrameworkPkgTestsInHelix
|
|
|
|
# rerunPassesRequiredToAvoidFailure: $(rerunPassesRequiredToAvoidFailure)
|
2020-09-18 21:50:07 +03:00
|
|
|
# minimumExpectedTestsExecutedCount: $(minimumExpectedTestsExecutedCount)
|