-
Notifications
You must be signed in to change notification settings - Fork 70
/
azure-pipelines.yml
85 lines (73 loc) · 2.2 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
trigger:
- main
pool:
vmImage: 'windows-2022' # name of the pool to run this job in
demands:
- msbuild
- visualstudio
- vstest
variables:
solution: '**/*.sln'
buildPlatform: 'x86|x64|ARM'
buildConfiguration: 'Release'
jobs:
- job: x64_build
steps:
- task: VSBuild@1
inputs:
platform: 'x64'
solution: '$(solution)'
configuration: '$(buildConfiguration)'
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'Low'
- task: VisualStudioTestPlatformInstaller@1
inputs:
packageFeedSelector: 'nugetOrg'
versionSelector: 'latestPreRelease'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: '**\*test*.dll'
searchFolder: '$(System.DefaultWorkingDirectory)'
runOnlyImpactedTests: false
runInParallel: false
rerunFailedTests: true
rerunMaxAttempts: 3
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)\LogMonitor\x64\Release\'
artifactType: 'pipeline'
artifactName: '64-bit'
- job: x86_build
steps:
- task: VSBuild@1
inputs:
platform: 'x86'
solution: '$(solution)'
configuration: '$(buildConfiguration)'
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'LogOnly'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- task: VisualStudioTestPlatformInstaller@1
inputs:
packageFeedSelector: 'nugetOrg'
versionSelector: 'latestPreRelease'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: '**\*test*.dll'
searchFolder: '$(System.DefaultWorkingDirectory)'
runOnlyImpactedTests: false
runInParallel: false
rerunFailedTests: true
rerunMaxAttempts: 3
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.SourcesDirectory)\LogMonitor\Release\'
artifactType: 'pipeline'
artifactName: '32-bit'