-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
99 lines (91 loc) · 2.1 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
trigger:
branches:
include:
- master
#- release/*
#- refs/tags/{tagname}
#exclude:
#- releases/old*
#pr:
# branches:
# include:
# - '*'
# A single stage - test the extension
jobs:
- job: 'Platform'
strategy:
maxParallel: 3
matrix:
linux:
imageName: 'ubuntu-16.04'
nodeVersion: '8.x'
mac:
imageName: 'macOS-10.13'
nodeVersion: '8.x'
windows:
imageName: 'VS2017-Win2016'
nodeVersion: '8.x'
#strategy:
# maxParallel: 3
# matrix:
# linux_node8:
# imageName: 'ubuntu-16.04'
# nodeVersion: '8.x'
# linux_node10:
# imageName: 'ubuntu-16.04'
# nodeVersion: '10.x'
# mac_node8:
# imageName: 'macOS-10.13'
# nodeVersion: '8.x'
# mac_node10:
# imageName: 'macOS-10.13'
# nodeVersion: '10.x'
# windows_node8:
# imageName: 'VS2017-Win2016'
# nodeVersion: '8.x'
# windows_node10:
# imageName: 'VS2017-Win2016'
# nodeVersion: '10.x'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
displayName: 'Install Node.js $(nodeVersion)'
inputs:
versionSpec: $(nodeVersion)
- task: Npm@1
displayName: 'Install dependencies'
inputs:
verbose: false
command: install
# Starts a process that allows the vscode test environment to run (Only for Linux)
- 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'))
- task: Npm@1
displayName: 'Run Tests'
inputs:
verbose: false
command: custom
customCommand: 'run test'
env:
DISPLAY: ':99.0' # Only necessary for linux tests
# A single stage - test the extension
#jobs:
#- job: Windows
# pool:
# vmImage: VS2017-Win2016
# steps:
# - template: common-pipelines.yml
#- job: Linux
# pool:
# vmImage: ubuntu-16.04
# steps:
# - template: common-pipelines.yml
#- job: macOS
# pool:
# vmImage: macOS-10.13
# steps:
# - template: common-pipelines.yml