-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
105 lines (92 loc) · 4.07 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
pool:
name: Azure Pipelines
vmImage: 'vs2017-win2016'
demands:
- msbuild
- visualstudio
variables:
BuildPlatform: 'Any CPU'
BuildConfiguration: 'Release'
steps:
- task: DotNetCoreCLI@2
displayName: 'Build CompanyCommunicator'
inputs:
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator/Microsoft.Teams.Apps.CompanyCommunicator.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publish CompanyCommunicator'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator/Microsoft.Teams.Apps.CompanyCommunicator.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: 'Build Data Function'
inputs:
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Data.Func/Microsoft.Teams.Apps.CompanyCommunicator.Data.Func.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publish Data Function'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Data.Func/Microsoft.Teams.Apps.CompanyCommunicator.Data.Func.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: 'Build Prep Function'
inputs:
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Test Prep Function '
inputs:
command: test
projects: Source/test/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.Test/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.Test.csproj
arguments: '--configuration $(BuildConfiguration)'
- script: dotnet test Source/test/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.Test/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.Test.csproj --logger trx --collect "Code coverage"
- task: PublishTestResults@2
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- task: DotNetCoreCLI@2
displayName: 'Publish Prep Function'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func/Microsoft.Teams.Apps.CompanyCommunicator.Prep.Func.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: DotNetCoreCLI@2
displayName: 'Build Send Function'
inputs:
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.csproj
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Test Send Function'
inputs:
command: test
projects: Source/test/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.Test/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.Test.csproj
arguments: '--configuration $(BuildConfiguration)'
- script: dotnet test Source/test/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.Test/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.Test.csproj --logger trx --collect "Code coverage"
- task: PublishTestResults@2
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- task: DotNetCoreCLI@2
displayName: 'Publish Send Function'
inputs:
command: publish
publishWebProjects: false
projects: Source/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func/Microsoft.Teams.Apps.CompanyCommunicator.Send.Func.csproj
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)/cc'
inputs:
SourceFolder: '$(build.artifactstagingdirectory)'
TargetFolder: '$(build.artifactstagingdirectory)/cc'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)/cc'