Skip to content

Commit d7c31cd

Browse files
committedOct 31, 2017
add linter ci
1 parent 997579e commit d7c31cd

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
 

‎lib/ci.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const BENCHMARK = 'BENCHMARK';
1111
const LIBUV = 'LIBUV';
1212
const NOINTL = 'NOINTL';
1313
const V8 = 'V8';
14+
const LINTER = 'LINTER';
1415

1516
const CI_TYPES = new Map([
1617
[CITGM, { name: 'CITGM', re: /citgm/ }],
@@ -20,7 +21,8 @@ const CI_TYPES = new Map([
2021
[BENCHMARK, { name: 'Benchmark', re: /benchmark/ }],
2122
[LIBUV, { name: 'libuv', re: /libuv/ }],
2223
[NOINTL, { name: 'No Intl', re: /nointl/ }],
23-
[V8, { name: 'V8', re: /node-test-commit-v8/ }]
24+
[V8, { name: 'V8', re: /node-test-commit-v8/ }],
25+
[LINTER, { name: 'Linter', re: /node-test-linter/ }]
2426
]);
2527

2628
class CIParser {
@@ -76,7 +78,7 @@ class CIParser {
7678

7779
CIParser.TYPES = CI_TYPES;
7880
CIParser.constants = {
79-
CITGM, FULL, BENCHMARK, LIBUV, V8, NOINTL
81+
CITGM, FULL, BENCHMARK, LIBUV, V8, NOINTL, LINTER
8082
};
8183

8284
module.exports = CIParser;

‎test/fixtures/comments_with_ci.json

+4
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
{
1919
"publishedAt": "2017-10-21T04:16:36.458Z",
2020
"bodyText": "Oh nice, it's back now. Benchmark CI: https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/20/"
21+
},
22+
{
23+
"publishedAt": "2017-10-22T04:16:36.458Z",
24+
"bodyText": "Linter CI: https://ci.nodejs.org/job/node-test-linter/13127/"
2125
}
2226
]

‎test/unit/ci.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const expected = new Map([
2929
['BENCHMARK', {
3030
link: 'https://ci.nodejs.org/job/benchmark-node-micro-benchmarks/20/',
3131
date: '2017-10-21T04:16:36.458Z'
32+
}],
33+
['LINTER', {
34+
link: 'https://ci.nodejs.org/job/node-test-linter/13127/',
35+
date: '2017-10-22T04:16:36.458Z'
3236
}]
3337
]);
3438

0 commit comments

Comments
 (0)