# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.

trigger:
  branches:
    include:
    - main
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/storage/
    - sdk/core/

pr:
  branches:
    include:
    - main
    - feature/*
    - hotfix/*
    - release/*
    - restapi*
  paths:
    include:
    - sdk/storage/
    - sdk/core/

extends:
  template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
  parameters:
    ServiceDirectory: storage
    TestProxy: true
    TestTimeoutInMinutes: 120
    # Override the base matrix due to the issues with building cryptography on unsupported platforms
    # https://github.com/Azure/azure-sdk-for-python/issues/17837
    MatrixConfigs:
      - Name: storage_ci_matrix
        Path: eng/pipelines/templates/stages/platform-matrix-cryptography-dependency.json
        Selection: sparse
        GenerateVMJobs: true
    Artifacts:
    - name: azure-storage-blob
      safeName: azurestorageblob
    - name: azure-storage-blob-changefeed
      safeName: azurestorageblobchangefeed
    - name: azure-storage-file-share
      safeName: azurestoragefileshare
    - name: azure-storage-file-datalake
      safeName: azurestoragefiledatalake
    - name: azure-storage-queue
      safeName: azurestoragequeue
    - name: azure-mgmt-storage
      safeName: azuremgmtstorage
    - name: azure-mgmt-storagecache
      safeName: azuremgmtstoragecache
    - name: azure-mgmt-storagesync
      safeName: azuremgmtstoragesync
    - name: azure-mgmt-storageimportexport
      safeName: azuremgmtstorageimportexport
    CondaArtifacts:
    - name: azure-storage
      meta_source: conda-recipe/meta.yaml
      common_root: azure/storage
      checkout:
        - package: azure-storage-blob
          checkout_path: sdk/storage
          version: 12.12.0
        - package: azure-storage-queue
          checkout_path: sdk/storage
          version: 12.3.0
        - package: azure-storage-file-share
          checkout_path: sdk/storage
          version: 12.8.0
        - package: azure-storage-file-datalake
          checkout_path: sdk/storage
          version: 12.7.0
