azure-sdk-for-cpp/sdk/keyvault/ci.yml
Victor Vazquez 835f156af9
Vcpkg manifest and binary caching (#3329)
* binary cache and manifest

* update packages

* udpate

* add cache to private pipeline

* next try

* aver

* other

* again

* aver quick

* more

* this way

* again

* one more

* print

* test

* use depend

* more deps

* dep

* Apply suggestions from code review

Co-authored-by: Daniel Jurek <djurek@microsoft.com>

* updated to use group variable

* update identity

* end line

* Update vcpkg.json

* Apply suggestions from code review

* cspell

* remove comment

* updates

* make cache mode depend on SAS env var

* map env var only for internal pipelines

* other approach

* what about this

* and this

* try

* amd

* another

* extra step

* typo

* override for internal

* use default succeded

* azure core update manifest

* a

* run cmake-generate nightly as well

* check for SAS

* check cache

* no secret

* fix is secret

* pass explicit

* use secret all the time

* char

* One more

* export

* echos

* last

* array

* remove question

* ok

* weird

* use account key

* substring

* VCPKG_BINARY_SOURCES

* Add module installation

* task:

* Correct pathing for module

* update source gen

* format

* update spelling

* IsWindoows

* Use pwsh

* Cannot clobber with PSModule-Helpers. Attempt plain install

* Attempt plain install

* Revert unnecessary change to Update-DocsMsToc.ps1

* template ready

* curl is required on Windows as well for some CI gates

* attestation

* fix format

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-03-24 09:11:30 -07:00

79 lines
2.6 KiB
YAML

# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger:
batch: true
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- sdk/keyvault
pr:
branches:
include:
- main
- feature/*
- release/*
- hotfix/*
paths:
include:
- sdk/keyvault
stages:
- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: keyvault
CtestRegex: "azure-security-keyvault.*"
LiveTestCtestRegex: "azure-security-keyvault.*"
LiveTestTimeoutInMinutes: 120
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
LineCoverageTarget: 81
BranchCoverageTarget: 42
Artifacts:
- Name: azure-security-keyvault-keys
Path: azure-security-keyvault-keys
VcpkgPortName: azure-security-keyvault-keys-cpp
- Name: azure-security-keyvault-secrets
Path: azure-security-keyvault-secrets
VcpkgPortName: azure-security-keyvault-secrets-cpp
- Name: azure-security-keyvault-certificates
Path: azure-security-keyvault-certificates
VcpkgPortName: azure-security-keyvault-certificates-cpp
ArtifactsSource:
- Name: azure-security-keyvault-keys
Path: azure-security-keyvault-keys
VcpkgPortName: azure-security-keyvault-keys-cpp
- Name: azure-security-keyvault-certificates
Path: azure-security-keyvault-certificates
VcpkgPortName: azure-security-keyvault-keys-cpp
- Name: azure-security-keyvault-secrets
Path: azure-security-keyvault-secrets
VcpkgPortName: azure-security-keyvault-secrets-cpp
TestEnv:
- 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"
# Tenant ID should use the uniqueID format for playback recordings
- 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"
CMakeTestOptions:
- Name: Default
Value: ''
- Name: Test
Value: '-DBUILD_TESTING=ON'
- Name: Samples
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON'
- Name: Performance
Value: '-DBUILD_TESTING=ON -DBUILD_SAMPLES=ON -DBUILD_PERFORMANCE_TESTS=ON'
CMakeSourceTestOptions:
- Name: Source
Value: '-DFETCH_SOURCE_DEPS=ON'