-
Notifications
You must be signed in to change notification settings - Fork 62
/
azure-pipelines.yml
81 lines (71 loc) · 2.18 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
name: 1.5$(rev:.r).0
resources:
- repo: self
pool:
vmImage: 'windows-2022'
trigger:
- master
variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
steps:
- task: bleddynrichards.Assembly-Info-Task.Assembly-Info-Task.Assembly-Info-NetFramework@2
displayName: 'Set Assembly Manifest Data'
inputs:
FileNames: '**\AssemblyInfo.cs'
VersionNumber: '$(build.buildnumber)'
FileVersionNumber: '$(build.buildnumber)'
- task: geeklearningio.gl-vsts-tasks-file-patch.xml-patch-task.XmlPatch@3
displayName: 'Update VSIX version'
inputs:
XmlWorkingDir: GitFlow.VS.Extension
XmlTargetFilters: source.extension.vsixmanifest
Namespaces: 'vsix => http://schemas.microsoft.com/developer/vsx-schema/2011'
JsonPatchContent: '= /vsix:PackageManifest/vsix:Metadata/vsix:Identity/@Version=> "$(build.buildNumber)"'
OutputPatchFile: true
FailIfNoPatchApplied: true
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.4.1'
inputs:
checkLatest: true
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: GitFlow.VS.sln
- task: VSBuild@1
displayName: 'Build solution GitFlow.VS.sln'
inputs:
solution: GitFlow.VS.sln
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
- task: VSTest@2
displayName: 'VsTest - testAssemblies'
inputs:
testAssemblyVer2: |
**\$(BuildConfiguration)\*test*.dll
!**\obj\**
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
testFiltercriteria: FullyQualifiedName~GitFlowWrapperTests
enabled: false
- task: CopyFiles@2
displayName: 'Copy marketplace files'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: |
**\bin\$(BuildConfiguration)\*.vsix
README.md
extension.manifest.json
TargetFolder: '$(build.artifactstagingdirectory)'
flattenFolders: true
- task: CopyFiles@2
displayName: 'Copy images'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: |
Images\*.*
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'