-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
66 lines (56 loc) · 1.53 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
66 lines (56 loc) · 1.53 KB
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
pool:
vmImage: 'windows-latest'
pr:
autoCancel: true
branches:
include:
- "*"
drafts: false
trigger:
batch: true
branches:
include:
- "*"
variables:
- group: SharedVariables
- name: buildConfiguration
value: 'Release'
- name: dotnetVersion
value: '7.0.x'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core $(dotnetVersion)'
inputs:
packageType: sdk
version: $(dotnetVersion)
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: 'Build'
inputs:
command: 'build'
arguments: '--configuration $(buildConfiguration)'
projects: '**/*.csproj'
- task: FuncToolsInstaller@0
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: "test"
projects: '**/*[Tt]ests*.csproj'
arguments: '--configuration $(buildConfiguration) --logger trx --collect "XPlat Code Coverage"'
- task: CopyFiles@2
condition: succeeded()
inputs:
contents: 'Src\Azure.Functions.Testing\bin\$(buildConfiguration)\*.nupkg'
targetFolder: '$(Build.ArtifactStagingDirectory)/nuget'
flattenFolders: true
- task: CopyFiles@2
condition: succeeded()
inputs:
contents: 'Src\Azure.Functions.Testing\bin\$(buildConfiguration)\*.snupkg'
targetFolder: '$(Build.ArtifactStagingDirectory)/nuget'
flattenFolders: true
- task: PublishPipelineArtifact@1
condition: succeeded()
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)/nuget'
artifactName: NuGetPackage