Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 41 additions & 2 deletions tools/azsdk-cli/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
parameters:
- name: RunBenchmarks
displayName: Run Benchmarks
type: boolean
default: false

trigger:
branches:
include:
Expand Down Expand Up @@ -67,8 +73,41 @@ extends:
TargetRepoName: azure-rest-api-specs
TargetRepoOwner: Azure
TargetRepoCommit: main
- ${{ if and(eq(parameters.RunBenchmarks, true), ne(variables['Build.Reason'], 'PullRequest')) }}:
- job: Run_Benchmark
displayName: 'Run Benchmark'
variables:
- group: 'AzSDK_Eval_Variable_group'
pool:
name: $(LINUXPOOL)
image: $(LINUXVMIMAGE)
os: linux
steps:
- checkout: none
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
parameters:
SkipCheckoutNone: true
Repositories:
- Name: $(Build.Repository.Name)
Commitish: $(Build.SourceVersion)
WorkingDirectory: $(System.DefaultWorkingDirectory)/$(Build.Repository.Name)
Paths:
- 'tools/azsdk-cli/Azure.Sdk.Tools.Cli.Benchmarks/**'
- 'eng/common/**'
- template: /eng/pipelines/templates/steps/install-dotnet.yml
- task: PowerShell@2
displayName: 'Run benchmarks'
inputs:
targetType: 'inline'
workingDirectory: '$(System.DefaultWorkingDirectory)/$(Build.Repository.Name)/tools/azsdk-cli/Azure.Sdk.Tools.Cli.Benchmarks'
pwsh: true
script: dotnet run -- run --all --parallel 5 --cleanup "always"
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_MULTILEVEL_LOOKUP: 0
COPILOT_GITHUB_TOKEN: $(azuresdk-copilot-github-pat)
CustomReleaseJobs:
- template: /tools/azsdk-cli/auto-documentation.yml
parameters:
ToolDirectory: $(ToolDir)

ToolDirectory: $(ToolDir)