* Represent existing matrix in json * Use new matrix * Move to stage * Cloud configuration * MaxParallel * DependsOn * Quote CtestRegex * Use template for cmake generate tests * Template name mappings * Formatting, parameters * Remove duplicate bypass-local-dns.yml * Enable Location override * Add Location * Add spelling words * Use Ubuntu 20 where the name specifies Ubuntu 20 * Apply suggestions from code review Co-authored-by: Ben Broderick Phillips <ben@benbp.net> * PR feedback * fix storage sample * Matrix documentation Co-authored-by: Ben Broderick Phillips <ben@benbp.net> Co-authored-by: Victor Vazquez <vhvb1989@gmail.com>
89 lines
3.1 KiB
YAML
89 lines
3.1 KiB
YAML
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
|
|
trigger:
|
|
batch: true
|
|
branches:
|
|
include:
|
|
- master
|
|
- main
|
|
- feature/*
|
|
- release/*
|
|
- hotfix/*
|
|
paths:
|
|
include:
|
|
- cmake-modules/
|
|
- eng/
|
|
- CMakeLists.txt
|
|
- sdk/core
|
|
|
|
pr:
|
|
branches:
|
|
include:
|
|
- master
|
|
- main
|
|
- feature/*
|
|
- release/*
|
|
- hotfix/*
|
|
paths:
|
|
include:
|
|
- cmake-modules/
|
|
- eng/
|
|
- CMakeLists.txt
|
|
- sdk/core
|
|
|
|
stages:
|
|
- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
|
|
parameters:
|
|
ServiceDirectory: core
|
|
# CI has static code analysis disabled, while LiveTest will have it enabled
|
|
# In the case of changes to core we want to re-run all CI tests for all
|
|
# libraries to check for potential regressions everywhere.
|
|
CtestRegex: .*
|
|
LiveTestCtestRegex: azure-core.|json-test
|
|
LiveTestTimeoutInMinutes: 90 # default is 60 min. We need a little longer on worst case for Win+jsonTests
|
|
LineCoverageTarget: 93
|
|
BranchCoverageTarget: 55
|
|
Artifacts:
|
|
- Name: azure-core
|
|
Path: azure-core
|
|
VcpkgPortName: azure-core-cpp
|
|
# Since Azure Core will run all service's tests, it requires all the expected env vars from services
|
|
TestEnv:
|
|
# Key Vault
|
|
- Name: AZURE_KEYVAULT_URL
|
|
Value: "https://non-real-account.vault.azure.net"
|
|
- Name: AZURE_KEYVAULT_HSM_URL
|
|
Value: "https://non-real-account.vault.azure.net"
|
|
# Key Vault & Identity
|
|
- Name: AZURE_TENANT_ID
|
|
Value: "33333333-3333-3333-3333-333333333333"
|
|
- Name: AZURE_CLIENT_ID
|
|
Value: "non-real-client"
|
|
- Name: AZURE_CLIENT_SECRET
|
|
Value: "non-real-secret"
|
|
# Storage
|
|
- Name: AAD_TENANT_ID
|
|
Value: "33333333-3333-3333-3333-333333333333"
|
|
- Name: AAD_CLIENT_ID
|
|
Value: "non-real-client"
|
|
- Name: AAD_CLIENT_SECRET
|
|
Value: "non-real-secret"
|
|
- Name: STANDARD_STORAGE_CONNECTION_STRING
|
|
Value: "DefaultEndpointsProtocol=https;AccountName=notReal;AccountKey=3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;EndpointSuffix=core.windows.net"
|
|
- Name: ADLS_GEN2_CONNECTION_STRING
|
|
Value: "DefaultEndpointsProtocol=https;AccountName=notReal;AccountKey=3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;EndpointSuffix=core.windows.net"
|
|
- Name: PREMIUM_FILE_CONNECTION_STRING
|
|
Value: "DefaultEndpointsProtocol=https;AccountName=notReal;AccountKey=3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333;EndpointSuffix=core.windows.net"
|
|
# Attestation
|
|
- Name: LOCATION_SHORT_NAME
|
|
Value: "wus"
|
|
- Name: ATTESTATION_ISOLATED_URL
|
|
Value: https://NotRealAttestationInstanceiso.wus.attest.azure.net
|
|
- Name: ATTESTATION_AAD_URL
|
|
Value: https://NotRealAttestationInstanceaad.wus.attest.azure.net
|
|
|
|
CMakeTestOptions:
|
|
- Name: Default
|
|
Value: ''
|
|
- Name: Test
|
|
Value: '-DBUILD_TESTING=ON'
|