-
Notifications
You must be signed in to change notification settings - Fork 101
/
build.yml
54 lines (50 loc) · 1.37 KB
/
build.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
# Unfortunately, VSTS does not currently support anchors in the YAML files.
# This promote duplication of matrices in strategies.
trigger:
branches:
include:
- master
- releases/*
jobs:
- job: Windows
strategy:
matrix:
(Node.js 8): { node_version: 8.x }
(Node.js 10): { node_version: 10.x }
(Node.js 12): { node_version: 12.x }
(Node.js 14): { node_version: 14.x }
pool:
vmImage: windows-latest
steps:
- template: steps-build.yml
parameters:
node_version: $(node_version)
- template: steps-tests.yml
- job: Linux
strategy:
matrix:
(Node.js 8): { node_version: 8.x }
(Node.js 10): { node_version: 10.x }
(Node.js 12): { node_version: 12.x }
(Node.js 14): { node_version: 14.x }
pool:
vmImage: ubuntu-latest
steps:
- template: steps-build.yml
parameters:
node_version: $(node_version)
- template: steps-tests.yml
- job: macOS
strategy:
matrix:
(Node.js 8): { node_version: 8.x }
(Node.js 10): { node_version: 10.x }
(Node.js 12): { node_version: 12.x }
(Node.js 14): { node_version: 14.x }
pool:
vmImage: macOS-latest
steps:
- template: steps-build.yml
parameters:
node_version: $(node_version)
- template: steps-tests.yml