dotfiles/vscode/.vscode/extensions/ms-python.black-formatter-2024.2.0/build/azure-pipeline.stable.yml
Errol Sancaktar ff17c17e23 vscode
2024-06-14 09:31:58 -06:00

67 lines
1.6 KiB
YAML

trigger: none
# branches:
# include:
# - release*
# tags:
# include: ['*']
pr: none
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false
extends:
template: azure-pipelines/extension/stable.yml@templates
parameters:
l10nSourcePaths: ./src
publishExtension: ${{ parameters.publishExtension }}
ghCreateTag: true
buildSteps:
- task: NodeTool@0
inputs:
versionSpec: '18.17.0'
displayName: Select Node version
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
displayName: Select Python version
- script: npm ci
displayName: Install NPM dependencies
- script: python -m pip install -U pip
displayName: Upgrade pip
- script: python -m pip install wheel
displayName: Install wheel
- script: python -m pip install nox
displayName: Install wheel
- script: python -m nox --session install_bundled_libs
displayName: Install Python dependencies
- script: python ./build/update_ext_version.py --release --for-publishing
displayName: Update build number
- script: npm run package
displayName: Build extension
tsa:
config:
areaPath: 'Visual Studio Code Python Extensions'
serviceTreeID: '6e6194bc-7baa-4486-86d0-9f5419626d46'
enabled: true