@@ -170,36 +170,11 @@ extends:
170170 - _runCounter : $[counter(variables['Build.Reason'], 0)]
171171 # Rely on task Arcade injects, not auto-injected build step.
172172 - skipComponentGovernanceDetection : true
173- - ${{ if notin(variables['Build.Reason'], 'PullRequest', 'Schedule') }} :
174- - _CosmosConnectionUrl : ' true'
175173 steps :
176- - bash : |
177- echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-nightly-test.documents.azure.com:443/"
178- displayName: Prepare to run Cosmos tests on ef-nightly-test
179- 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')))
180- - bash : |
181- echo "##vso[task.setvariable variable=_CosmosConnectionUrl]https://ef-pr-test.documents.azure.com:443/"
182- displayName: Prepare to run Cosmos tests on ef-pr-test
183- 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')))
184174 - template : /eng/common/templates-official/steps/enable-internal-sources.yml
185175 - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
186176 - script : eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine $(_InternalRuntimeDownloadArgs)
187177 displayName : Build
188- - task : AzureCLI@2
189- displayName : Run Cosmos tests
190- condition : notin(variables['Build.Reason'], 'PullRequest', 'Schedule')
191- inputs :
192- azureSubscription : EFCosmosTesting
193- scriptType : bash
194- scriptLocation : ' inlineScript'
195- inlineScript : |
196- ./test.sh --ci --configuration $(_BuildConfig) --projects $(Build.SourcesDirectory)/test/EFCore.Cosmos.FunctionalTests/EFCore.Cosmos.FunctionalTests.csproj
197- env :
198- Test__Cosmos__DefaultConnection : $(_CosmosConnectionUrl)
199- Test__Cosmos__UseTokenCredential : true
200- Test__Cosmos__SubscriptionId : d709b837-4a74-4aec-addc-b6e4b9b23e7e
201- Test__Cosmos__ResourceGroup : efcosmosci
202- name : Build
203178 templateContext :
204179 outputs :
205180 - output : pipelineArtifact
0 commit comments