forked from mehmetseckin/azuredevops-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
62 lines (51 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: '0.1.$(rev:r)'
trigger:
branches:
include:
- master
paths:
exclude:
- Docs/*
- README.md
jobs:
- job: 'build'
displayName: 'Build and Test'
pool:
vmImage: 'win1803'
workspace:
clean: all
steps:
- checkout: self
clean: true
- task: PowerShell@2
displayName: 'Build and test the module'
inputs:
targetType: 'filePath'
filePath: './Build/Start-Build.ps1'
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/TestResults_PS*.xml'
- task: PublishTestResults@2
displayName: 'Publish module script analysis results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/ModuleScriptAnalyzerResults_PS*.xml'
- task: PublishTestResults@2
displayName: 'Publish examples script analysis results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/ExamplesScriptAnalyzerResults_PS*.xml'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: '**/CodeCoverageReport_PS*.xml'
- powershell: Copy-Item "AzureDevOps" $(Build.ArtifactStagingDirectory) -Recurse -Force
displayName: 'Stage module build output'
- task: PublishBuildArtifacts@1
displayName: 'Publish build artifacts'
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: 'drop'