Skip to content

Commit 159986e

Browse files
committed
adding azure pipelines yaml file
1 parent 6119cd9 commit 159986e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

azure-pipelines.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
tags:
6+
include:
7+
- v*
8+
9+
pr:
10+
branches:
11+
include:
12+
- main
13+
14+
strategy:
15+
matrix:
16+
linux:
17+
imageName: 'ubuntu-latest'
18+
mac:
19+
imageName: 'macos-latest'
20+
windows:
21+
imageName: 'windows-latest'
22+
23+
pool:
24+
vmImage: $(imageName)
25+
26+
steps:
27+
28+
- task: NodeTool@0
29+
inputs:
30+
versionSpec: '10.x'
31+
displayName: 'Install Node.js'
32+
33+
- bash: |
34+
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
35+
echo ">>> Started xvfb"
36+
displayName: Start xvfb
37+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
38+
39+
- bash: |
40+
echo ">>> Compile vscode-test"
41+
npm && npm compile
42+
echo ">>> Compiled vscode-test"
43+
cd sample
44+
echo ">>> Run sample integration test"
45+
npm && npm compile && npm test
46+
displayName: Run Tests
47+
env:
48+
DISPLAY: ':99.0'

0 commit comments

Comments
 (0)