ProjectReunion/build/ProjectReunion-CI.yml

106 строки
3.6 KiB
YAML
Исходник Обычный вид История

# 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
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:
- task: NuGetAuthenticate@0
inputs:
nuGetServiceConnections: 'WindowsES'
- template: AzurePipelinesTemplates\ProjectReunion-BuildDevProject-Steps.yml
- template: AzurePipelinesTemplates\ProjectReunion-PublishProjectOutput-Steps.yml
# MRTCore build pipeline
- template: ..\dev\MRTCore\azure-pipelines.yml
parameters:
buildJobName: 'BuildMRTCore'
Set up Helix pipeline (#241) * preparehelixpayload * Update ProjectReunion-CI.yml for Azure Pipelines * remove , * update parameters * change param names * params no cmdlet * add helix files * added WinUi dependencies to nuget.config for TAEF redist * reduce taef redist version, remove winUI packagefeed * updated script to use projectreunionhelix.sln * test project * fix directory * update packages.config * update build output variable * fix diretory * second nuget restore * wrong nuget.config path * update nuget version * testdirectory * wrong directory * latest version of taef redist * develop version * new dir * update rest of script from liftedixp * add helix access token * remove WinUi dependecies * uncomment preparehelix * uncomment 2nd nuget restore * update helix payload directory * use root dir * remove hello world sample test * add creator arg * remove creator * update helix SDK * undo newer version * only RS5 queue * try xaml queues * helix api access token * use helix access token * test result powershell * Update ProjectReunion-CI.yml for Azure Pipelines * Update ProjectReunion-CI.yml for Azure Pipelines * helix type job filter * azurepipeline helper scripts * unknown test * testsuite name * empty job type * remove test suite check * update test type * uncomment * debug * winui2 scripts * debug * helix access token needed * helix access token * use liftedixp ps1 file * update path * build config * replace code * only run one flavour * fix yml file * fix indentation * one flavour only * different URI * api 5.1 * remove unrelaible tests * debug * debug comment * null check * powershell works now * fix yml error * null check * typo * grab screenshots and logs * debug * screenshot count * grab all files but dumps * no helix token * remove failing test * comment out test * remove unneeded files * remove more unneeded stuff, remove debug matrix * resolve PR comments * lower expected tests run value
2020-10-20 20:27:16 +03:00
- template: AzurePipelinesTemplates\ProjectReunion-RunHelixTests-Job.yml
parameters:
name: 'RunTestsInHelix'
dependsOn:
- Build
Set up Helix pipeline (#241) * preparehelixpayload * Update ProjectReunion-CI.yml for Azure Pipelines * remove , * update parameters * change param names * params no cmdlet * add helix files * added WinUi dependencies to nuget.config for TAEF redist * reduce taef redist version, remove winUI packagefeed * updated script to use projectreunionhelix.sln * test project * fix directory * update packages.config * update build output variable * fix diretory * second nuget restore * wrong nuget.config path * update nuget version * testdirectory * wrong directory * latest version of taef redist * develop version * new dir * update rest of script from liftedixp * add helix access token * remove WinUi dependecies * uncomment preparehelix * uncomment 2nd nuget restore * update helix payload directory * use root dir * remove hello world sample test * add creator arg * remove creator * update helix SDK * undo newer version * only RS5 queue * try xaml queues * helix api access token * use helix access token * test result powershell * Update ProjectReunion-CI.yml for Azure Pipelines * Update ProjectReunion-CI.yml for Azure Pipelines * helix type job filter * azurepipeline helper scripts * unknown test * testsuite name * empty job type * remove test suite check * update test type * uncomment * debug * winui2 scripts * debug * helix access token needed * helix access token * use liftedixp ps1 file * update path * build config * replace code * only run one flavour * fix yml file * fix indentation * one flavour only * different URI * api 5.1 * remove unrelaible tests * debug * debug comment * null check * powershell works now * fix yml error * null check * typo * grab screenshots and logs * debug * screenshot count * grab all files but dumps * no helix token * remove failing test * comment out test * remove unneeded files * remove more unneeded stuff, remove debug matrix * resolve PR comments * lower expected tests run value
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)
minimumExpectedTestsExecutedCount: 2
Set up Helix pipeline (#241) * preparehelixpayload * Update ProjectReunion-CI.yml for Azure Pipelines * remove , * update parameters * change param names * params no cmdlet * add helix files * added WinUi dependencies to nuget.config for TAEF redist * reduce taef redist version, remove winUI packagefeed * updated script to use projectreunionhelix.sln * test project * fix directory * update packages.config * update build output variable * fix diretory * second nuget restore * wrong nuget.config path * update nuget version * testdirectory * wrong directory * latest version of taef redist * develop version * new dir * update rest of script from liftedixp * add helix access token * remove WinUi dependecies * uncomment preparehelix * uncomment 2nd nuget restore * update helix payload directory * use root dir * remove hello world sample test * add creator arg * remove creator * update helix SDK * undo newer version * only RS5 queue * try xaml queues * helix api access token * use helix access token * test result powershell * Update ProjectReunion-CI.yml for Azure Pipelines * Update ProjectReunion-CI.yml for Azure Pipelines * helix type job filter * azurepipeline helper scripts * unknown test * testsuite name * empty job type * remove test suite check * update test type * uncomment * debug * winui2 scripts * debug * helix access token needed * helix access token * use liftedixp ps1 file * update path * build config * replace code * only run one flavour * fix yml file * fix indentation * one flavour only * different URI * api 5.1 * remove unrelaible tests * debug * debug comment * null check * powershell works now * fix yml error * null check * typo * grab screenshots and logs * debug * screenshot count * grab all files but dumps * no helix token * remove failing test * comment out test * remove unneeded files * remove more unneeded stuff, remove debug matrix * resolve PR comments * lower expected tests run value
2020-10-20 20:27:16 +03:00
# Create Nuget Package
- template: AzurePipelinesTemplates\ProjectReunion-CreateNugetPackage-Job.yml
parameters:
jobName: CreateNugetPackage
dependsOn:
- Build
- PublishMRT
prereleaseVersionTag: ci
condition: |
and
(
in(dependencies.PublishMRT.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'),
in(dependencies.Build.result, 'Succeeded', 'SucceededWithIssues', 'Skipped')
)
# 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)
# minimumExpectedTestsExecutedCount: $(minimumExpectedTestsExecutedCount)