forked from streetsidesoftware/vscode-spell-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
74 lines (65 loc) · 1.69 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
trigger:
branches:
include:
- main
paths:
exclude:
- docs/**
pr:
branches:
include:
- main
paths:
exclude:
- docs/**
jobs:
- job: unit_test # name of the job (A-Z, a-z, 0-9, and underscore)
displayName: Unit Tests # friendly name to display in the UI
strategy:
matrix:
linux:
imageName: "ubuntu-latest"
mac:
imageName: "macos-latest"
windows:
imageName: "windows-latest"
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.x"
displayName: "Install Node.js"
- bash: yarn install --frozen-lockfile
displayName: Install
- bash: yarn test
displayName: Run Tests
- job: integration_test # name of the job (A-Z, a-z, 0-9, and underscore)
displayName: Integration Tests # friendly name to display in the UI
strategy:
matrix:
linux:
imageName: "ubuntu-latest"
mac:
imageName: "macos-latest"
windows:
imageName: "windows-latest"
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: "14.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'))
- bash: yarn install --frozen-lockfile
displayName: Install
- bash: yarn run test-client-integration
displayName: Integration Tests
env:
DISPLAY: ":99.0"
# cspell:ignore macos xvfb