-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathazure-pipelines.yml
48 lines (41 loc) · 1.43 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: 1.0.$(Rev:r).0
trigger:
- "*"
pool:
vmImage: windows-latest
steps:
- task: PowerShell@2
displayName: Build.ps1
inputs:
targetType: filePath
filePath: ./build.ps1
arguments: '; CIBuild'
- task: PublishTestResults@2
displayName: 'Publish Test Results ./build/test/*.trx'
inputs:
testResultsFormat: VSTest
testResultsFiles: 'build/test/*.trx'
mergeTestResults: true
testRunTitle: 'CI Tests'
continueOnError: true
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from $(System.DefaultWorkingDirectory)/**/UnitTests/coverage.cobertura.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/UnitTests/coverage.cobertura.xml'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from $(System.DefaultWorkingDirectory)/**/UnitTests/coverage.cobertura.xml copy'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/IntegrationTests/coverage.cobertura.xml'
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
packagesToPush: 'build\*.$(Build.BuildNumber).nupkg'
publishVstsFeed: 'ProgrammingWithPalermo/ChurchBulletin'