forked from microsoft/DurableFunctionsMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
160 lines (140 loc) · 4.62 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
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 publish durablefunctionsmonitor.dotnetbackend'
inputs:
command: publish
publishWebProjects: false
projects: durablefunctionsmonitor.dotnetbackend
arguments: '--output $(Build.ArtifactStagingDirectory)/output'
zipAfterPublish: false
modifyOutputPath: false
- task: CopyFiles@2
displayName: 'copy dotnetbackend to durablefunctionsmonitor-vscodeext/backend'
inputs:
SourceFolder: '$(Build.ArtifactStagingDirectory)/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'
condition: 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 output'
inputs:
Contents: |
LICENSE
TargetFolder: '$(Build.ArtifactStagingDirectory)/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)/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'