Skip to content

Commit 89d3a19

Browse files
azure-pipelines[bot]ematipico
authored andcommitted
chore(ci): Set up CI with Azure Pipelines
1 parent 876b8cc commit 89d3a19

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.js text eol=lf
2+
*.ts text eol=lf

azure-pipelines.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
jobs:
2+
- job: linux
3+
pool:
4+
vmImage: ubuntu-16.04
5+
strategy:
6+
maxParallel: 3
7+
matrix:
8+
node-10:
9+
node_version: ^10.10.0
10+
node-8:
11+
node_version: ^8.12.0
12+
node-6:
13+
node_version: ^6.14.4
14+
steps:
15+
- task: NodeTool@0
16+
displayName: "Install Node.js"
17+
inputs:
18+
versionSpec: $(node_version)
19+
- script: |
20+
npm install -g npm@latest
21+
displayName: "Install npm"
22+
- script: |
23+
npm ci
24+
displayName: "Install dependencies"
25+
- script: |
26+
./node_modules/.bin/lerna bootstrap
27+
displayName: "Lerna bootstrap"
28+
- script: |
29+
npm test
30+
displayName: "Run tests"
31+
- job: macos
32+
pool:
33+
vmImage: "macOS 10.13"
34+
strategy:
35+
maxParallel: 3
36+
matrix:
37+
node-10:
38+
node_version: ^10.10.0
39+
node-8:
40+
node_version: ^8.12.0
41+
steps:
42+
- task: NodeTool@0
43+
displayName: "Install Node.js"
44+
inputs:
45+
versionSpec: $(node_version)
46+
- script: |
47+
npm install -g npm@latest
48+
displayName: "Install npm"
49+
- script: |
50+
npm ci
51+
displayName: "Install dependencies"
52+
- script: |
53+
./node_modules/.bin/lerna bootstrap
54+
displayName: "Lerna bootstrap"
55+
- script: |
56+
npm test
57+
displayName: "Run tests"
58+
- job: windows
59+
pool:
60+
vmImage: vs2017-win2016
61+
strategy:
62+
maxParallel: 3
63+
matrix:
64+
node-8:
65+
node_version: ^8.12.0
66+
node-6:
67+
node_version: ^6.14.4
68+
steps:
69+
- task: NodeTool@0
70+
displayName: "Install Node.js"
71+
inputs:
72+
versionSpec: $(node_version)
73+
- script: |
74+
npm install -g npm@latest
75+
displayName: "Install npm"
76+
- script: |
77+
npm ci
78+
displayName: "Install dependencies"
79+
- script: |
80+
./node_modules/.bin/lerna.cmd bootstrap
81+
displayName: "Lerna bootstrap"
82+
- script: |
83+
npm test
84+
displayName: "Run tests"

0 commit comments

Comments
 (0)