@@ -158,39 +158,15 @@ extends:
158158 demands : ImageOverride -equals 1es-ubuntu-2204
159159 os : linux
160160 variables :
161- - _runCounter : $[counter(variables['Build.Reason'], 0)]
162161 # Rely on task Arcade injects, not auto-injected build step.
163162 - skipComponentGovernanceDetection : true
164- - ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }} :
165- - _CosmosConnectionUrl : ' true'
166163 steps :
167- - bash : |
168- echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
169- displayName: Prepare to run Cosmos tests on ef-nightly-test
170- condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '0'), endsWith(variables['_runCounter'], '2'), endsWith(variables['_runCounter'], '4'), endsWith(variables['_runCounter'], '6'), endsWith(variables['_runCounter'], '8')))
171- - bash : |
172- echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
173- displayName: Prepare to run Cosmos tests on ef-pr-test
174- condition: and(eq(variables['_CosmosConnectionUrl'], 'true'), or(endsWith(variables['_runCounter'], '1'), endsWith(variables['_runCounter'], '3'), endsWith(variables['_runCounter'], '5'), endsWith(variables['_runCounter'], '7'), endsWith(variables['_runCounter'], '9')))
175164 - template : /eng/common/templates-official/steps/enable-internal-sources.yml
176165 - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
177166 - script : eng/common/build.sh --restore --build --test --pack --ci --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
178167 displayName : Build
179- - task : AzureCLI@2
180- displayName : Run Cosmos tests
181- condition : notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
182- inputs :
183- azureSubscription : EFCosmosTesting
184- addSpnToEnvironment : true
185- scriptType : bash
186- scriptLocation : ' inlineScript'
187- inlineScript : |
188- ./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj
189168 env :
190169 Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
191- Test__Cosmos__UseTokenCredential : true
192- Test__Cosmos__SubscriptionId : d709b837-4a74-4aec-addc-b6e4b9b23e7e
193- Test__Cosmos__ResourceGroup : efcosmosci
194170 name : Build
195171 templateContext :
196172 sdl :
0 commit comments