Define AZURE_CLIENT_ID for live tests in CI (#5431)

* Define AZURE_CLIENT_ID for live tests in CI
This commit is contained in:
Larry Osterman 2024-03-08 15:59:09 -08:00 committed by GitHub
parent e490daaa50
commit dd012fe95d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,10 +148,15 @@ jobs:
# We don't need to set it to invoke ctest
# Visual Studio generator used in CI is a multi-config generator.
# As such, it requires the configuration argument for building and invoking ctest
- script: ctest $(WindowsCtestConfig) -V --tests-regex "${{ parameters.CtestRegex }}" --no-compress-output -T Test
- bash: |
export AZURE_CLIENT_ID=$(${{parameters.ServiceDirectory}}_CLIENT_ID)
export AZURE_TENANT_ID=$(${{parameters.ServiceDirectory}}_TENANT_ID)
export AZURE_CLIENT_SECRET=$(${{parameters.ServiceDirectory}}_CLIENT_SECRET)
ctest $(WindowsCtestConfig) -V --tests-regex "${{ parameters.CtestRegex }}" --no-compress-output -T Test
workingDirectory: build
displayName: ctest
# Runs only if test-resources are happly deployed.
# Runs only if test-resources are happily deployed.
# unit-tests runs for those configs where samples are not ran.
# This enables to run tests and samples at the same time as different matrix configuration.
# Then unit-tests runs, samples should not run.