From 8763be768d572824559c57c771c285ad46e23cc0 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 31 May 2019 10:01:50 -0400 Subject: [PATCH] Update AzPipelines to run PowerShell 5.1 Tests --- azure-pipelines.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 46201e1..e1f7ae8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,23 +5,40 @@ name: $(TeamProject)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.rr) -# Trigger CI on commit to master and develop branches +# Trigger CI on commit to master branch trigger: branches: include: - master - - develop - - TestingBranch + - PowerShellBackPort # Trigger CI on pull requests to master and develop branches pr: - master - - develop - - TestingBranch jobs: - # Windows Build Job + # Windows PowerShell 5.1 Build Job - job: Build_PS_Win2016 + timeoutInMinutes: 10 + cancelTimeoutInMinutes: 2 + pool: + vmImage: vs2017-win2016 + steps: + # Run build.ps1 script in PowerShell Core + - powershell: | + .\build.ps1 -Verbose + displayName: 'Build and Test' + # Upload test results to Azure Pipeline + - task: PublishTestResults@2 + inputs: + testRunner: 'NUnit' + testResultsFiles: '**/TestResults.xml' + testRunTitle: 'PS_Win2016' + displayName: 'Publish Test Results' + condition: always() + + # Windows PowerShell Core Build Job + - job: Build_PSCore_Win2016 timeoutInMinutes: 10 cancelTimeoutInMinutes: 2 pool: