forked from Azure/azure-functions-durable-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
143 lines (121 loc) · 3.83 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
jobs:
- job: FunctionsV1Tests
pool:
vmImage: 'windows-latest'
variables:
solution: 'WebJobs.Extensions.DurableTask.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
displayName: 'Use the .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: 'test/FunctionsV1/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'test/FunctionsV1/*.csproj'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(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)
APPINSIGHTS_INSTRUMENTATIONKEY: $(APPINSIGHTS_INSTRUMENTATIONKEY)
- job: FunctionsV2Tests
pool:
vmImage: 'windows-latest'
strategy:
parallel: 8
variables:
solution: 'WebJobs.Extensions.DurableTask.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
displayName: 'Use the .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: 'test/FunctionsV2/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'test/FunctionsV2/*.csproj'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(buildConfiguration)'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/bin/**/*tests.v2.dll
distributionBatchType: basedOnExecutionTime
diagnosticsEnabled: true
rerunFailedTests: true
rerunFailedThreshold: 10
rerunMaxAttempts: 2
runInParallel: true
env:
AzureWebJobsStorage: $(AzureWebJobsStorage)
APPINSIGHTS_INSTRUMENTATIONKEY: $(APPINSIGHTS_INSTRUMENTATIONKEY)
- job: DurableAnalyzerTests
pool:
vmImage: 'windows-latest'
variables:
solution: '**/WebJobs.Extensions.DurableTask.Analyzers.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
displayName: 'Use the .NET 6 SDK'
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: 'test/WebJobs.Extensions.DurableTask.Analyzers.Test/*.csproj'
feedsToUse: 'config'
nugetConfigPath: '.nuget/nuget.config'
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: 'test/WebJobs.Extensions.DurableTask.Analyzers.Test/*.csproj'
arguments: '--configuration $(buildConfiguration)'
displayName: 'dotnet build $(buildConfiguration) '
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/bin/**/*Analyzers.Test.dll
distributionBatchType: basedOnExecutionTime
diagnosticsEnabled: true
rerunFailedTests: true
rerunFailedThreshold: 10
rerunMaxAttempts: 2
env:
AzureWebJobsStorage: $(AzureWebJobsStorage)
APPINSIGHTS_INSTRUMENTATIONKEY: $(APPINSIGHTS_INSTRUMENTATIONKEY)