forked from icsharpcode/ILSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
102 lines (88 loc) · 2.78 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
trigger:
- master
- 5.0.x
pr:
- master
- 5.0.x
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
BuildPlatform: Any CPU
jobs:
- job: Build
pool:
vmImage: windows-2019
strategy:
matrix:
Config_Release_Zip:
BuildConfiguration: Release
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Debug_Zip:
BuildConfiguration: Debug
ReleaseChannel: Zip
Solution: ILSpy.sln
Config_Release_CI:
BuildConfiguration: Release
ReleaseChannel: CI
Solution: ILSpy.WithPackage.sln
Config_Release_Store:
BuildConfiguration: Release
ReleaseChannel: Store
Solution: ILSpy.WithPackage.sln
steps:
- checkout: self
submodules: recursive
- task: UseDotNet@2
displayName: 'Install .NET Core 3.1'
inputs:
packageType: sdk
version: '3.1.100'
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: pwsh .\BuildTools\pipelines-install.ps1
displayName: Install
- task: MSBuild@1
displayName: Restore ILSpy
inputs:
solution: $(Solution)
msbuildArguments: /t:restore
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
- task: MSBuild@1
displayName: Build ILSpy
inputs:
solution: $(Solution)
msbuildArguments: /p:AppxPackageDir="$(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\\"
configuration: $(BuildConfiguration)
platform: $(BuildPlatform)
- task: VSTest@2
displayName: Test
inputs:
testSelector: testAssemblies
testAssemblyVer2: |
ICSharpCode.Decompiler.Tests\bin\$(BuildConfiguration)\net472\ICSharpCode.Decompiler.Tests.exe
ILSpy.Tests\bin\$(BuildConfiguration)\net472\ILSpy.Tests.exe
ILSpy.BamlDecompiler.Tests\bin\$(BuildConfiguration)\net472\ILSpy.BamlDecompiler.Tests.exe
- task: ArchiveFiles@1
displayName: Create zip
inputs:
archiveType: zip
rootFolder: ILSpy/bin/$(BuildConfiguration)/net472
archiveFile: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)\ILSpy.$(Build.BuildNumber).zip
includeRootFolder: false
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))
- script: python BuildTools\tidy.py
displayName: Tab check
- task: CopyFiles@2
displayName: Move VSIX to publish directory
inputs:
contents: |
**\*.vsix
**\*.nupkg
targetFolder: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
flattenFolders: true
condition: and(succeeded(), eq(variables['ReleaseChannel'], 'Zip'))
- task: PublishPipelineArtifact@0
displayName: Publish $(ReleaseChannel) $(BuildConfiguration)
inputs:
targetPath: $(Build.ArtifactStagingDirectory)\$(ReleaseChannel)
artifactName: $(ReleaseChannel) - $(BuildConfiguration)