Update AzPipelines to run PowerShell 5.1 Tests
This commit is contained in:
+23
-6
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user