8
8
os : windows
9
9
10
10
variables :
11
- IntegrationProject : test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
12
- IsReleaseBranch : $[contains(variables['Build.SourceBranch'], 'release/')]
11
+ test_projects : test/WebJobs.Script.Tests.Integration/WebJobs.Script.Tests.Integration.csproj
12
+ is_release : $[contains(variables['Build.SourceBranch'], 'release/')]
13
+ test_args : -c release --no-build
13
14
14
15
steps :
15
16
- template : /eng/ci/templates/install-dotnet.yml@self
@@ -79,99 +80,108 @@ jobs:
79
80
AzureWebJobsEventHubReceiverSecretMap : $(EventHub)
80
81
81
82
- task : DotNetCoreCLI@2
82
- displayName : Build Integration.csproj
83
+ displayName : Restore
84
+ inputs :
85
+ command : custom
86
+ custom : restore
87
+ arguments : -v m
88
+ projects : $(test_projects)
89
+
90
+ - task : DotNetCoreCLI@2
91
+ displayName : Build
83
92
inputs :
84
93
command : build
85
- projects : $(IntegrationProject)
94
+ arguments : -v m -c release --no-restore
95
+ projects : $(test_projects)
86
96
87
97
- task : DotNetCoreCLI@2
88
98
displayName : C# end to end tests
89
99
inputs :
90
100
command : test
91
101
testRunTitle : C# end to end tests
92
- arguments : ' --filter "Group=CSharpEndToEndTests" --no-build '
93
- projects : $(IntegrationProject )
102
+ arguments : ' --filter "Group=CSharpEndToEndTests" $(test_args) '
103
+ projects : $(test_projects )
94
104
95
105
- task : DotNetCoreCLI@2
96
106
displayName : Node end to end tests
97
107
condition : succeededOrFailed()
98
108
inputs :
99
109
command : test
100
110
testRunTitle : Node end to end tests
101
- arguments : ' --filter "Group=NodeEndToEndTests" --no-build '
102
- projects : $(IntegrationProject )
111
+ arguments : ' --filter "Group=NodeEndToEndTests" $(test_args) '
112
+ projects : $(test_projects )
103
113
104
114
- task : DotNetCoreCLI@2
105
115
displayName : Direct load end to end tests
106
116
condition : succeededOrFailed()
107
117
inputs :
108
118
command : test
109
119
testRunTitle : Direct load end to end tests
110
- arguments : ' --filter "Group=DirectLoadEndToEndTests" --no-build '
111
- projects : $(IntegrationProject )
120
+ arguments : ' --filter "Group=DirectLoadEndToEndTests" $(test_args) '
121
+ projects : $(test_projects )
112
122
113
123
- task : DotNetCoreCLI@2
114
124
displayName : F# end to end tests
115
125
condition : succeededOrFailed()
116
126
inputs :
117
127
command : test
118
128
testRunTitle : F# end to end tests
119
- arguments : ' --filter "Group=FSharpEndToEndTests" --no-build '
120
- projects : $(IntegrationProject )
129
+ arguments : ' --filter "Group=FSharpEndToEndTests" $(test_args) '
130
+ projects : $(test_projects )
121
131
122
132
- task : DotNetCoreCLI@2
123
133
displayName : Language worker end to end tests
124
134
condition : succeededOrFailed()
125
135
inputs :
126
136
command : test
127
137
testRunTitle : Language worker end to end tests
128
- arguments : ' --filter "Group=LanguageWorkerSelectionEndToEndTests" --no-build '
129
- projects : $(IntegrationProject )
138
+ arguments : ' --filter "Group=LanguageWorkerSelectionEndToEndTests" $(test_args) '
139
+ projects : $(test_projects )
130
140
131
141
- task : DotNetCoreCLI@2
132
142
displayName : Node script host end to end tests
133
143
condition : succeededOrFailed()
134
144
inputs :
135
145
command : test
136
146
testRunTitle : Node script host end to end tests
137
- arguments : ' --filter "Group=NodeScriptHostTests" --no-build '
138
- projects : $(IntegrationProject )
147
+ arguments : ' --filter "Group=NodeScriptHostTests" $(test_args) '
148
+ projects : $(test_projects )
139
149
140
150
- task : DotNetCoreCLI@2
141
151
displayName : Raw assembly end to end tests
142
152
condition : succeededOrFailed()
143
153
inputs :
144
154
command : test
145
155
testRunTitle : Raw assembly end to end tests
146
- arguments : ' --filter "Group=RawAssemblyEndToEndTests" --no-build '
147
- projects : $(IntegrationProject )
156
+ arguments : ' --filter "Group=RawAssemblyEndToEndTests" $(test_args) '
157
+ projects : $(test_projects )
148
158
149
159
- task : DotNetCoreCLI@2
150
160
displayName : Samples end to end tests
151
161
condition : succeededOrFailed()
152
162
inputs :
153
163
command : test
154
164
testRunTitle : Samples end to end tests
155
- arguments : ' --filter "Group=SamplesEndToEndTests" --no-build '
156
- projects : $(IntegrationProject )
165
+ arguments : ' --filter "Group=SamplesEndToEndTests" $(test_args) '
166
+ projects : $(test_projects )
157
167
158
168
- task : DotNetCoreCLI@2
159
169
displayName : Drain mode end to end tests
160
170
condition : succeededOrFailed()
161
171
inputs :
162
172
command : test
163
173
testRunTitle : Drain mode end to end tests
164
- arguments : ' --filter "Group=DrainModeEndToEndTests" --no-build '
165
- projects : $(IntegrationProject )
174
+ arguments : ' --filter "Group=DrainModeEndToEndTests" $(test_args) '
175
+ projects : $(test_projects )
166
176
167
177
- task : DotNetCoreCLI@2
168
178
displayName : Standby mode end to end tests Windows
169
179
condition : succeededOrFailed()
170
180
inputs :
171
181
command : test
172
182
testRunTitle : Standby mode end to end tests Windows
173
- arguments : ' --filter "Group=StandbyModeEndToEndTests_Windows" --no-build '
174
- projects : $(IntegrationProject )
183
+ arguments : ' --filter "Group=StandbyModeEndToEndTests_Windows" $(test_args) '
184
+ projects : $(test_projects )
175
185
176
186
# Disabled to unblock in 202401. Will fix shortly.
177
187
# - task: DotNetCoreCLI@2
@@ -180,26 +190,26 @@ jobs:
180
190
# inputs:
181
191
# command: test
182
192
# testRunTitle: Standby mode end to end tests Linux
183
- # arguments: '--filter "Group=StandbyModeEndToEndTests_Linux" --no-build '
184
- # projects: $(IntegrationProject )
193
+ # arguments: '--filter "Group=StandbyModeEndToEndTests_Linux" $(test_args) '
194
+ # projects: $(test_projects )
185
195
186
196
- task : DotNetCoreCLI@2
187
197
displayName : Linux container end to end tests Windows
188
198
condition : succeededOrFailed()
189
199
inputs :
190
200
command : test
191
201
testRunTitle : Linux container end to end tests Windows
192
- arguments : ' --filter "Group=ContainerInstanceTests" --no-build '
193
- projects : $(IntegrationProject )
202
+ arguments : ' --filter "Group=ContainerInstanceTests" $(test_args) '
203
+ projects : $(test_projects )
194
204
195
205
- task : DotNetCoreCLI@2
196
206
displayName : Release verification tests
197
- condition : ${{ eq(variables.IsReleaseBranch , true) }}
207
+ condition : ${{ eq(variables.is_release , true) }}
198
208
inputs :
199
209
command : test
200
210
testRunTitle : Release verification tests
201
- arguments : ' --filter "Group=ReleaseTests" --no-build '
202
- projects : $(IntegrationProject )
211
+ arguments : ' --filter "Group=ReleaseTests" $(test_args) '
212
+ projects : $(test_projects )
203
213
204
214
- task : PowerShell@2
205
215
condition : always()
0 commit comments