forked from Azure/azure-functions-durable-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
116 lines (94 loc) · 2.64 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
trigger:
- dev
jobs:
- job: FunctionsV1Tests
pool:
vmImage: 'windows-latest'
variables:
solution: 'WebJobs.Extensions.DurableTask.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Debug'
steps:
- task: NuGetToolInstaller@0
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/**/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/*tests.v1.dll
testFiltercriteria: 'Category=FunctionsV1_BVT'
diagnosticsEnabled: true
rerunFailedTests: true
rerunFailedThreshold: 10
rerunMaxAttempts: 2
env:
AzureWebJobsStorage: $(AzureWebJobsStorage)
- job: FunctionsV2Tests
pool:
vmImage: 'windows-latest'
strategy:
parallel: 9
variables:
solution: 'WebJobs.Extensions.DurableTask.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Debug'
steps:
- task: NuGetToolInstaller@0
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/**/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/*tests.v2.dll
distributionBatchType: basedOnExecutionTime
diagnosticsEnabled: true
rerunFailedTests: true
rerunFailedThreshold: 10
rerunMaxAttempts: 2
env:
AzureWebJobsStorage: $(AzureWebJobsStorage)
- job: PublishPipelineArtifact
dependsOn:
- FunctionsV1Tests
- FunctionsV2Tests
pool:
vmImage: 'windows-latest'
variables:
solution: 'WebJobs.Extensions.DurableTask.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Debug'
steps:
- task: NuGetToolInstaller@0
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: '**/**/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- publish: 'src/WebJobs.Extensions.DurableTask/bin'
artifact: bin