-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
71 lines (62 loc) · 2.17 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
63
64
65
66
67
68
69
70
71
pool:
vmImage: 'windows-latest'
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: 'build'
projects: '**/Ponydoro_WPF.csproj'
arguments: '--configuration Release --output $(Build.ArtifactStagingDirectory)'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: 'test'
projects: '**/Tests.csproj'
- task: DotNetCoreCLI@2
displayName: 'Install dotnet-stryker'
inputs:
command: custom
custom: tool
arguments: install -g dotnet-stryker
- task: DotNetCoreCLI@2
displayName: 'Run dotnet-stryker Ponydoro_Common'
inputs:
command: 'custom'
custom: 'stryker'
arguments: '--config-file "../stryker-config.json" --version "$(Build.SourceBranchName)-Ponydoro_Common"'
workingDirectory: '$(Build.SourcesDirectory)/Ponydoro_Common.Tests'
- task: DotNetCoreCLI@2
displayName: 'Run dotnet-stryker Ponydoro_WPF'
inputs:
command: 'custom'
custom: 'stryker'
arguments: '--config-file "../stryker-config.json" --version "$(Build.SourceBranchName)-Ponydoro_WPF"'
workingDirectory: '$(Build.SourcesDirectory)/Ponydoro_WPF.Tests'
- task: PublishMutationReport@0
displayName: 'Publish Mutation Test Report'
inputs:
reportPattern: '**/mutation-report.html'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Ponydoro_$(Build.BuildNumber).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/Ponydoro_$(Build.BuildNumber).zip'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: GitHubRelease@1
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
gitHubConnection: 'dynamictulip (1)'
repositoryName: 'dynamictulip/Ponydoro'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'userSpecifiedTag'
tag: 'v$(MajorVersion).$(Build.BuildNumber)'
assets: '$(Build.ArtifactStagingDirectory)/Ponydoro_$(Build.BuildNumber).zip'
changeLogCompareToRelease: 'lastFullRelease'
changeLogType: 'commitBased'