-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathazure-pipelines.yml
192 lines (168 loc) · 6 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
trigger:
- main
pool:
name: Azure Pipelines
vmImage: 'windows-2022'
demands: npm
steps:
- task: Npm@1
displayName: 'npm install durablefunctionsmonitor.react'
inputs:
command: custom
workingDir: durablefunctionsmonitor.react
verbose: false
customCommand: 'install -legacy-peer-deps'
- task: Npm@1
displayName: 'npm build durablefunctionsmonitor.react'
inputs:
command: custom
workingDir: durablefunctionsmonitor.react
verbose: false
customCommand: 'run build'
- task: CopyFiles@2
displayName: 'copy statics to durablefunctionsmonitor.dotnetbackend/DfmStatics'
inputs:
SourceFolder: durablefunctionsmonitor.react/build
Contents: |
static/**
index.html
favicon.png
logo.svg
service-worker.js
manifest.json
TargetFolder: durablefunctionsmonitor.dotnetbackend/DfmStatics
CleanTargetFolder: true
- task: CopyFiles@2
displayName: 'copy durablefunctionsmonitor.dotnetbackend to ArtifactStagingDirectory'
inputs:
SourceFolder: durablefunctionsmonitor.dotnetbackend
TargetFolder: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetbackend'
OverWrite: true
- task: CopyFiles@2
displayName: 'copy custom-backends to ArtifactStagingDirectory'
inputs:
SourceFolder: custom-backends
TargetFolder: '$(Build.ArtifactStagingDirectory)/custom-backends'
OverWrite: true
- task: DotNetCoreCLI@2
displayName: 'dotnet test tests/durablefunctionsmonitor.dotnetbackend.tests'
inputs:
command: 'test'
projects: 'tests/durablefunctionsmonitor.dotnetbackend.tests/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'dotnet test tests/durablefunctionsmonitor.dotnetisolated.core.tests'
inputs:
command: 'test'
projects: 'tests/durablefunctionsmonitor.dotnetisolated.core.tests/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish durablefunctionsmonitor.dotnetbackend'
inputs:
command: publish
publishWebProjects: false
projects: durablefunctionsmonitor.dotnetbackend
arguments: '--output $(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetbackend/output'
zipAfterPublish: false
modifyOutputPath: false
- task: DotNetCoreCLI@2
displayName: 'dotnet publish durablefunctionsmonitor.dotnetisolated'
inputs:
command: publish
publishWebProjects: false
projects: durablefunctionsmonitor.dotnetisolated
arguments: '--output $(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetisolated/output'
zipAfterPublish: false
modifyOutputPath: false
- task: CopyFiles@2
displayName: 'copy dotnetbackend to durablefunctionsmonitor-vscodeext/backend'
inputs:
SourceFolder: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetbackend/output'
Contents: |
**
!logo.svg
TargetFolder: 'durablefunctionsmonitor-vscodeext/backend'
CleanTargetFolder: true
- task: CopyFiles@2
displayName: 'copy custom-backends to durablefunctionsmonitor-vscodeext/custom-backends'
inputs:
SourceFolder: 'custom-backends'
Contents: |
**
!*.md
TargetFolder: 'durablefunctionsmonitor-vscodeext/custom-backends'
CleanTargetFolder: true
- task: Npm@1
displayName: 'npm install durablefunctionsmonitor-vscodeext'
inputs:
workingDir: 'durablefunctionsmonitor-vscodeext'
verbose: false
- task: Npm@1
displayName: 'npm install -g azure-functions-core-tools@4'
inputs:
command: custom
workingDir: 'durablefunctionsmonitor-vscodeext'
customCommand: 'install -g azure-functions-core-tools@4'
verbose: false
- task: Npm@1
displayName: 'run tests on durablefunctionsmonitor-vscodeext'
enabled: false
inputs:
command: custom
workingDir: 'durablefunctionsmonitor-vscodeext'
verbose: false
customCommand: 'run test'
- task: Npm@1
displayName: 'package durablefunctionsmonitor-vscodeext to VSIX-file'
inputs:
command: custom
workingDir: 'durablefunctionsmonitor-vscodeext'
verbose: false
customCommand: 'run package'
- task: CopyFiles@2
displayName: 'copy VSIX-file to ArtifactStagingDirectory'
inputs:
SourceFolder: 'durablefunctionsmonitor-vscodeext'
Contents: 'durablefunctionsmonitor*.vsix'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
OverWrite: true
- task: CopyFiles@2
displayName: 'copy LICENSE to durablefunctionsmonitor.dotnetbackend/output'
inputs:
Contents: |
LICENSE
TargetFolder: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetbackend/output'
OverWrite: true
- task: CopyFiles@2
displayName: 'copy LICENSE.txt to durablefunctionsmonitor.dotnetisolated/output'
inputs:
SourceFolder: 'durablefunctionsmonitor.dotnetisolated'
Contents: 'LICENSE.txt'
TargetFolder: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetisolated/output'
OverWrite: true
- task: NuGetToolInstaller@1
displayName: 'Install latest nuget.exe'
inputs:
versionSpec:
- task: NuGetCommand@2
displayName: 'package dotnetbackend into a Nuget package'
inputs:
command: 'pack'
packagesToPack: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetbackend/output/nuspec.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)'
versioningScheme: 'off'
- task: NuGetCommand@2
displayName: 'package dotnetisolated into a Nuget package'
inputs:
command: 'pack'
packagesToPack: '$(Build.ArtifactStagingDirectory)/durablefunctionsmonitor.dotnetisolated/output/nuspec.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)'
versioningScheme: 'off'
- task: az-func-as-a-graph@1
displayName: 'Generate az-func-as-a-graph diagram of DurableFunctionsMonitor.DotNetBackend'
inputs:
projectFolder: '$(System.DefaultWorkingDirectory)/durablefunctionsmonitor.dotnetbackend'
outputFile: '$(Build.ArtifactStagingDirectory)/DurableFunctionsMonitor-DotNetBackend-Diagram.htm'
repoUri: '$(Build.Repository.Uri)'
repoName: '$(Build.Repository.Name)'
branchName: '$(Build.SourceBranchName)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'