forked from microsoft/MIEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
109 lines (104 loc) · 3.26 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: $(Date:yyyMMdd).$(Rev:r)
pr:
- 'main'
jobs:
- job: Debug
pool: 'Hosted Windows 2019 with VS2019'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Debug'
- task: VSTest@2
inputs:
testAssemblyVer2: |
$(Build.SourcesDirectory)\bin\Debug\MICoreUnitTests.dll
$(Build.SourcesDirectory)\bin\Debug\JDbgUnitTests.dll
$(Build.SourcesDirectory)\bin\Debug\SSHDebugTests.dll
- task: PublishTestResults@2
inputs:
testResultsFormat: 'xUnit'
testResultsFiles: 'bin\Debug\TestResults.xml'
searchFolder: '$(System.DefaultWorkingDirectory)'
testRunTitle: '$(Build.DefinitionName)_$(Build.BuildNumber)_Debug'
- job: Release
pool: 'Hosted Windows 2019 with VS2019'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Release'
- task: VSTest@2
inputs:
testAssemblyVer2: |
$(Build.SourcesDirectory)\bin\Release\MICoreUnitTests.dll
$(Build.SourcesDirectory)\bin\Release\JDbgUnitTests.dll
$(Build.SourcesDirectory)\bin\Release\SSHDebugTests.dll
- task: PublishTestResults@2
inputs:
testResultsFormat: 'xUnit'
testResultsFiles: 'bin\Release\TestResults.xml'
searchFolder: '$(System.DefaultWorkingDirectory)'
testRunTitle: '$(Build.DefinitionName)_$(Build.BuildNumber)_Release'
- job: DesktopDebug
pool: 'Hosted Windows 2019 with VS2019'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Desktop.Debug'
- job: DesktopRelease
pool: 'Hosted Windows 2019 with VS2019'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Desktop.Release'
- job: LabRelease
pool: 'Hosted Windows 2019 with VS2019'
variables:
TEST_LAB_BUILD: 'true'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Lab.Release'
- job: LabDebug
pool: 'Hosted Windows 2019 with VS2019'
variables:
TEST_LAB_BUILD: 'true'
steps:
- task: NuGetCommand@2
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: '$(Build.SourcesDirectory)\src\.nuget\NuGet.config'
- task: MSBuild@1
inputs:
solution: '$(Build.SourcesDirectory)\src\MIDebugEngine.sln'
configuration: 'Lab.Debug'