-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (45 loc) · 1.14 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
trigger:
batch: true
branches:
include:
- master
paths:
exclude:
- .vscode/*
- README.md
pr:
branches:
include:
- master
paths:
exclude:
- .vscode/*
- README.md
resources:
- repo: self
jobs:
- job: Build_PS_Win2016
pool:
vmImage: vs2017-win2016
steps:
- powershell: |
#Install nuget provider
Get-PackageProvider -Name NuGet -ForceBootstrap | Out-Null
#Install modules
Install-Module PSScriptAnalyzer -Force -Scope CurrentUser
Install-Module Pester -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber
Install-Module psake -Force -Scope CurrentUser
displayName: 'Install prereqs'
- powershell: |
Invoke-PSake .\build.psake.ps1 -taskList Test
displayName: 'Build and Test'
- task: PublishTestResults@2
inputs:
testRunner: 'NUnit'
testResultsFiles: '**/TestResults.xml'
testRunTitle: 'PS_Win2016'
displayName: 'Publish Test Results'
- task: PublishCodeCoverageResults@1
inputs:
summaryFileLocation: '**/CodeCoverage.xml'
displayName: 'Publish Code Coverage'