Skip to content

Commit 05688be

Browse files
committed
chore: update azure pipeline config
1 parent 07878ef commit 05688be

File tree

1 file changed

+43
-71
lines changed

1 file changed

+43
-71
lines changed

azure-pipelines.yml

Lines changed: 43 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,43 @@
1-
jobs:
2-
- job: Windows
3-
pool:
4-
name: Hosted VS2017
5-
demands: npm
6-
steps:
7-
- task: NodeTool@0
8-
displayName: 'Use Node 8.x'
9-
inputs:
10-
versionSpec: 8.x
11-
- task: Npm@1
12-
displayName: 'Install dependencies'
13-
inputs:
14-
verbose: false
15-
- task: Npm@1
16-
displayName: 'Compile sources'
17-
inputs:
18-
command: custom
19-
verbose: false
20-
customCommand: 'run compile'
21-
- script: 'node node_modules/vscode/bin/test'
22-
displayName: 'Run tests'
23-
- job: macOS
24-
pool:
25-
name: Hosted macOS
26-
demands: npm
27-
steps:
28-
- task: NodeTool@0
29-
displayName: 'Use Node 8.x'
30-
inputs:
31-
versionSpec: 8.x
32-
- task: Npm@1
33-
displayName: 'Install dependencies'
34-
inputs:
35-
verbose: false
36-
- task: Npm@1
37-
displayName: 'Compile sources'
38-
inputs:
39-
command: custom
40-
verbose: false
41-
customCommand: 'run compile'
42-
- script: 'node node_modules/vscode/bin/test'
43-
displayName: 'Run tests'
44-
- job: Linux
45-
pool:
46-
name: Hosted Ubuntu 1604
47-
demands: npm
48-
steps:
49-
- task: NodeTool@0
50-
displayName: 'Use Node 8.x'
51-
inputs:
52-
versionSpec: 8.x
53-
- task: Npm@1
54-
displayName: 'Install dependencies'
55-
inputs:
56-
verbose: false
57-
- task: Npm@1
58-
displayName: 'Compile sources'
59-
inputs:
60-
command: custom
61-
verbose: false
62-
customCommand: 'run compile'
63-
- script: |
64-
set -e
65-
/usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
66-
disown -ar
67-
displayName: 'Start xvfb'
68-
- script: 'node node_modules/vscode/bin/test'
69-
displayName: 'Run tests'
70-
env:
71-
DISPLAY: :10
1+
trigger:
2+
branches:
3+
include:
4+
- master
5+
tags:
6+
include:
7+
- v*
8+
9+
strategy:
10+
matrix:
11+
linux:
12+
imageName: 'ubuntu-latest'
13+
mac:
14+
imageName: 'macos-latest'
15+
windows:
16+
imageName: 'windows-latest'
17+
18+
pool:
19+
vmImage: $(imageName)
20+
21+
steps:
22+
23+
- task: NodeTool@0
24+
inputs:
25+
versionSpec: '16.x'
26+
displayName: 'Install Node.js'
27+
28+
- bash: |
29+
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
30+
echo ">>> Started xvfb"
31+
displayName: Start xvfb
32+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
33+
34+
- bash: |
35+
echo ">>> Compile vscode-test"
36+
yarn && yarn compile
37+
echo ">>> Compiled vscode-test"
38+
cd sample
39+
echo ">>> Run sample integration test"
40+
yarn && yarn compile && yarn test
41+
displayName: Run Tests
42+
env:
43+
DISPLAY: ':99.0'

0 commit comments

Comments
 (0)