Define AZURE_CLIENT_ID for live tests in CI (#5431)
* Define AZURE_CLIENT_ID for live tests in CI
This commit is contained in:
parent
e490daaa50
commit
dd012fe95d
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user