@@ -2,89 +2,47 @@ trigger:
22  - master 
33
44jobs :
5-   - job : lint 
6-     displayName : Lint code 
7-     pool :
5+   - template : .azure-pipelines/lint-job.yml 
6+ 
7+   - template : .azure-pipelines/test-job.yml 
8+     parameters :
9+       name : test_on_linux_node12_eslint5 
10+       displayName : Test on Node 12, ESLint 5, Linux 
811      vmImage : Ubuntu-16.04 
9-     steps :
10-       - task : NodeTool@0 
11-         displayName : Install Node.js 
12-         inputs :
13-           versionSpec : 12.x 
14-       - script : npm install 
15-         displayName : Install Packages 
16-       - script : npm run -s lint 
17-         displayName : Lint code 
12+       nodeVersion : 12.x 
1813
19-   - job : tests_on_linux 
20-     displayName : Test on Linux 
21-     pool :
22-       vmImage : ' Ubuntu-16.04' 
23-     strategy :
24-       matrix :
25-         " Node.js v12 " 
26-           node_version : 12.x 
27-         " Node.js v10 " 
28-           node_version : 10.x 
29-         " Node.js v8.10.0 " 
30-           node_version : " 8.10.0" 
31-     steps :
32-       - task : NodeTool@0 
33-         displayName : Install Node.js 
34-         inputs :
35-           versionSpec : $(node_version) 
36-       - script : npm install && npm install --no-save async 
37-         displayName : Install Packages 
38-       - script : npm test 
39-         displayName : Test 
40-       - script : npm run -s codecov -- -t $(CODECOV_TOKEN) 
41-         displayName : Send Coverage 
14+   - template : .azure-pipelines/test-job.yml 
15+     parameters :
16+       name : test_on_linux_node10_eslint5 
17+       displayName : Test on Node 10, ESLint 5, Linux 
18+       vmImage : Ubuntu-16.04 
19+       nodeVersion : 10.x 
4220
43-   - job : tests_on_linux_with_eslint6 
44-     displayName : Test ESLint 6 on Linux 
45-     pool :
46-       vmImage : ' Ubuntu-16.04' 
47-     steps :
48-       - task : NodeTool@0 
49-         displayName : Install Node.js 
50-         inputs :
51-           versionSpec : 12.x 
52-       #  It needs twice due to npm's bug: https://npm.community/t/error-node-modules-staging-eslint-e7cf6846-node-modules-eslint
53-       - script : npm install && npm install --no-save async eslint@^6.0.0-rc.0 && npm install --no-save async eslint@^6.0.0-rc.0 
54-         displayName : Install Packages 
55-       - script : npm test 
56-         displayName : Test 
57-       - script : npm run -s codecov -- -t $(CODECOV_TOKEN) 
58-         displayName : Send Coverage 
21+   - template : .azure-pipelines/test-job.yml 
22+     parameters :
23+       name : test_on_linux_node8_eslint5 
24+       displayName : Test on Node 8, ESLint 5, Linux 
25+       vmImage : Ubuntu-16.04 
26+       nodeVersion : 8.x 
27+ 
28+   - template : .azure-pipelines/test-job.yml 
29+     parameters :
30+       name : test_on_linux_node12_eslint6rc 
31+       displayName : Test on Node 12, ESLint 6 RC, Linux 
32+       vmImage : Ubuntu-16.04 
33+       nodeVersion : 12.x 
34+       eslintVersion : ^6.0.0-rc.0 
5935
60-   - job : tests_on_windows 
61-     displayName : Test on Windows 
62-     pool :
63-       vmImage : ' Windows-2019' 
64-     steps :
65-       - task : NodeTool@0 
66-         displayName : Install Node.js 
67-         inputs :
68-           versionSpec : 12.x 
69-       - script : npm install && npm install --no-save async 
70-         displayName : Install Packages 
71-       - script : npm test 
72-         displayName : Test 
73-       - script : npm run -s codecov -- -t $(CODECOV_TOKEN) 
74-         displayName : Send Coverage 
36+   - template : .azure-pipelines/test-job.yml 
37+     parameters :
38+       name : test_on_windows_node12_eslint5 
39+       displayName : Test on Node 12, ESLint 5, Windows 
40+       vmImage : Windows-2019 
41+       nodeVersion : 12.x 
7542
76-   - job : tests_on_macos 
77-     displayName : Test on macOS 
78-     pool :
79-       vmImage : ' macOS-10.14' 
80-     steps :
81-       - task : NodeTool@0 
82-         displayName : Install Node.js 
83-         inputs :
84-           versionSpec : 12.x 
85-       - script : npm install && npm install --no-save async 
86-         displayName : Install Packages 
87-       - script : npm test 
88-         displayName : Test 
89-       - script : npm run -s codecov -- -t $(CODECOV_TOKEN) 
90-         displayName : Send Coverage 
43+   - template : .azure-pipelines/test-job.yml 
44+     parameters :
45+       name : test_on_macos_node12_eslint5 
46+       displayName : Test on Node 12, ESLint 5, macOS 
47+       vmImage : macOS-10.14 
48+       nodeVersion : 12.x 
0 commit comments