Files
vscode/build/azure-pipelines/linux/product-build-linux-ci.yml
2025-10-06 11:12:40 +02:00

52 lines
2.0 KiB
YAML

parameters:
- name: VSCODE_CIBUILD
type: boolean
- name: VSCODE_QUALITY
type: string
- name: VSCODE_TEST_SUITE
type: string
jobs:
- job: Linux${{ parameters.VSCODE_TEST_SUITE }}
displayName: ${{ parameters.VSCODE_TEST_SUITE }} Tests
timeoutInMinutes: 30
variables:
DISPLAY: ":10"
NPM_ARCH: x64
VSCODE_ARCH: x64
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(Build.SourcesDirectory)/.build/crashes
artifactName: crash-dump-linux-$(VSCODE_ARCH)-${{ lower(parameters.VSCODE_TEST_SUITE) }}-$(System.JobAttempt)
displayName: Publish Crash Reports
sbomEnabled: false
isProduction: false
condition: failed()
- output: pipelineArtifact
targetPath: $(Build.SourcesDirectory)/node_modules
artifactName: node-modules-linux-$(VSCODE_ARCH)-${{ lower(parameters.VSCODE_TEST_SUITE) }}-$(System.JobAttempt)
displayName: Publish Node Modules
sbomEnabled: false
isProduction: false
condition: failed()
- output: pipelineArtifact
targetPath: $(Build.SourcesDirectory)/.build/logs
artifactName: logs-linux-$(VSCODE_ARCH)-${{ lower(parameters.VSCODE_TEST_SUITE) }}-$(System.JobAttempt)
displayName: Publish Log Files
sbomEnabled: false
isProduction: false
condition: succeededOrFailed()
steps:
- template: ./steps/product-build-linux-compile.yml@self
parameters:
VSCODE_ARCH: x64
VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
${{ if eq(parameters.VSCODE_TEST_SUITE, 'Electron') }}:
VSCODE_RUN_ELECTRON_TESTS: true
${{ if eq(parameters.VSCODE_TEST_SUITE, 'Browser') }}:
VSCODE_RUN_BROWSER_TESTS: true
${{ if eq(parameters.VSCODE_TEST_SUITE, 'Remote') }}:
VSCODE_RUN_REMOTE_TESTS: true