-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (41 loc) · 1008 Bytes
/
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
variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
trigger:
branches:
include:
- master
strategy:
matrix:
Ubuntu:
imageName: 'ubuntu-16.04'
macOS:
imageName: 'macOS-10.15'
Windows:
imageName: 'windows-2019'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: 'Install Node.js'
- 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: Cache@2
inputs:
key: 'yarn | "$(Agent.OS)" | yarn.lock'
restoreKeys: |
yarn | "$(Agent.OS)"
path: $(YARN_CACHE_FOLDER)
displayName: Cache@2
- script: yarn --frozen-lockfile
displayName: Install Dependencies
- script: yarn build
displayName: Build Language Server
- script: yarn run test
displayName: Build & Test
env:
DISPLAY: ':99.0'