This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
azure-pipelines.yml
117 lines (103 loc) · 3.32 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
pool:
name: Azure Pipelines
vmImage: 'ubuntu-18.04'
demands: npm
steps:
- task: Npm@1
displayName: 'npm install durablefunctionsmonitor.react'
inputs:
workingDir: durablefunctionsmonitor.react
verbose: false
- 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: 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: '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: NuGetCommand@2
displayName: 'package dotnetbackend into a Nuget package'
inputs:
command: 'pack'
packagesToPack: '$(Build.ArtifactStagingDirectory)/output/nuspec.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)'
versioningScheme: 'off'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'