-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathrecursive-extractor-pr.yml
More file actions
111 lines (105 loc) · 3.79 KB
/
recursive-extractor-pr.yml
File metadata and controls
111 lines (105 loc) · 3.79 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: RecursiveExtractor_PR_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
trigger: none
pr:
branches:
include:
- main
resources:
repositories:
- repository: templates
type: git
name: General/OSS-Tools-Pipeline-Templates
ref: refs/tags/v2.0.4
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
variables:
BuildConfiguration: 'Release'
DotnetVersion: '10.0.x'
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
name: MSSecurity-1ES-Build-Agents-Pool
image: MSSecurity-1ES-Windows-2022
os: windows
sdl:
armory:
enabled: false
stages:
- stage: Test
dependsOn: []
jobs:
- template: dotnet-test-job.yml@templates
parameters:
jobName: 'lib_dotnet_test_windows'
dotnetVersions: ['8.0.x', '9.0.x', '10.0.x']
projectPath: 'RecursiveExtractor.Tests/RecursiveExtractor.Tests.csproj'
poolName: MSSecurity-1ES-Build-Agents-Pool
poolImage: MSSecurity-1ES-Windows-2022
poolOs: windows
dotnetTestArgs: '--settings coverlet.runsettings --collect:"XPlat Code Coverage"'
includeNuGetOrg: false
nugetFeedsToUse: 'config'
nugetConfigPath: 'nuget.config'
onInit:
- task: NuGetAuthenticate@1
postTest:
- task: PublishCodeCoverageResults@2
inputs:
summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'
- template: dotnet-test-job.yml@templates
parameters:
jobName: 'cli_dotnet_test_windows'
dotnetVersions: ['8.0.x', '9.0.x', '10.0.x']
projectPath: 'RecursiveExtractor.Cli.Tests/RecursiveExtractor.Cli.Tests.csproj'
poolName: MSSecurity-1ES-Build-Agents-Pool
poolImage: MSSecurity-1ES-Windows-2022
poolOs: windows
dotnetTestArgs: '--settings coverlet.runsettings --collect:"XPlat Code Coverage"'
includeNuGetOrg: false
nugetFeedsToUse: 'config'
nugetConfigPath: 'nuget.config'
onInit:
- task: NuGetAuthenticate@1
postTest:
- task: PublishCodeCoverageResults@2
inputs:
summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'
- stage: Build
dependsOn:
- Test
jobs:
- template: nuget-build-job.yml@templates
parameters:
jobName: 'pack_lib'
buildConfiguration: ${{ variables.BuildConfiguration }}
dotnetVersion: ${{ variables.DotnetVersion }}
projectPath: 'RecursiveExtractor/RecursiveExtractor.csproj'
projectName: 'RecursiveExtractor'
customPackFlags: '/p:ContinuousIntegrationBuild=true'
artifactName: 'lib-archive'
includeNuGetOrg: false
nugetFeedsToUse: 'config'
nugetConfigPath: 'nuget.config'
onInit:
- task: NuGetAuthenticate@1
preBuild:
- template: nbgv-set-version-steps.yml@templates
- template: nuget-build-job.yml@templates
parameters:
jobName: 'pack_cli'
buildConfiguration: ${{ variables.BuildConfiguration }}
dotnetVersion: ${{ variables.DotnetVersion }}
projectPath: 'RecursiveExtractor.Cli/RecursiveExtractor.Cli.csproj'
projectName: 'RecursiveExtractor_CLI'
customPackFlags: '/p:ContinuousIntegrationBuild=true'
artifactName: 'cli-archive'
includeNuGetOrg: false
nugetFeedsToUse: 'config'
nugetConfigPath: 'nuget.config'
onInit:
- task: NuGetAuthenticate@1
preBuild:
- template: nbgv-set-version-steps.yml@templates