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
60 changes: 27 additions & 33 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
name: $(Date:yyyyMMdd)$(Rev:.r)

trigger:
branches:
include: ['*']
include: ["*"]
tags:
include: ['*']

strategy:
matrix:
linux:
imageName: 'ubuntu-latest'

pool:
vmImage: $(imageName)

steps:

- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
include: ["*"]
pr: none

- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco

- bash: |
echo ">>> Compile, unit-test, integration-test"
npm i && npm run compile-lint-test
displayName: Compile, Lint, Test
env:
DISPLAY: ':99.0'
extends:
template: azure-pipelines/extension/stable.yml@templates
parameters:
buildSteps:
- bash: |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo ">>> Started xvfb"
displayName: Start xvfb
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))

- bash: |
echo ">>> Publish"
npm run deploy -- -p $(VSCODE_MARKETPLACE_TOKEN)
displayName: Publish
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
- bash: |
echo ">>> Compile, unit-test, integration-test"
npm i && npm run compile-lint-test
displayName: Compile, Lint, Test
env:
DISPLAY: ":99.0"