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)
|
name: $(TeamProject)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.rr)
|
||||||
|
|
||||||
# Trigger CI on commit to master and develop branches
|
# Trigger CI on commit to master branch
|
||||||
trigger:
|
trigger:
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- master
|
||||||
- develop
|
- PowerShellBackPort
|
||||||
- TestingBranch
|
|
||||||
|
|
||||||
# Trigger CI on pull requests to master and develop branches
|
# Trigger CI on pull requests to master and develop branches
|
||||||
pr:
|
pr:
|
||||||
- master
|
- master
|
||||||
- develop
|
|
||||||
- TestingBranch
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Windows Build Job
|
# Windows PowerShell 5.1 Build Job
|
||||||
- job: Build_PS_Win2016
|
- 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
|
timeoutInMinutes: 10
|
||||||
cancelTimeoutInMinutes: 2
|
cancelTimeoutInMinutes: 2
|
||||||
pool:
|
pool:
|
||||||
|
|||||||
Reference in New Issue
Block a user