Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 18a2c63

Browse files
committed
Merge branch 'canary'
2 parents 82db4d5 + 5287faf commit 18a2c63

File tree

8 files changed

+10287
-48
lines changed

8 files changed

+10287
-48
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"comma-spacing": [1, {"before": false, "after": true}],
2323
"comma-style": [1, "last"],
2424
"eol-last": 1,
25-
"indent": [1, 2, {"SwitchCase": 1}],
25+
"indent": [1, 2, {"SwitchCase": 1, "FunctionDeclaration": {"parameters": "first"}, "FunctionExpression": {"parameters": "first"}}],
2626
"keyword-spacing": 1,
2727
"semi": 2,
2828
"quotes": [1, "single"]

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.10
1+
8.2

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
sudo: false
22
language: node_js
33
node_js:
4-
- "6.10"
4+
- "8.2"
55

66
addons:
77
code_climate:
@@ -12,7 +12,7 @@ before_script:
1212
- sh -e /etc/init.d/xvfb start
1313

1414
after_script:
15-
- if [ "$TEST_SCOPE" == "" ]; then npm install -g codeclimate-test-reporter && codeclimate-test-reporter < build/coverage/report/lcov.info; fi
15+
- if [ "$TEST_SCOPE" == "" ]; then npm install -g codeclimate-test-reporter && codeclimate-test-reporter < build/coverage/lcov.info; fi
1616

1717
env:
1818
matrix:

karma.conf.js

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ var AVAILABLE_SCOPES = [], isValidScope, injectByScope, getAffectiveScope, isDef
3030
}
3131
return prefix + 'bower_components/' + path;
3232
},
33-
isDefaultScope = function (scope) {
34-
return !isValidScope(scope);
35-
};
33+
isDefaultScope = function (scope) {
34+
return !isValidScope(scope);
35+
};
3636
})();
3737

3838
/**
@@ -156,7 +156,7 @@ module.exports = function (config) {
156156
reporters : (() => {
157157
let reporters = ['progress'];
158158
if (isDefaultScope(scope)) {
159-
reporters.push('coverage');
159+
reporters.push('coverage-istanbul');
160160
}
161161
if (sourcelabsConfig.enabled) {
162162
reporters.push('saucelabs');
@@ -226,17 +226,22 @@ module.exports = function (config) {
226226
plugins : ['transform-runtime'],
227227
},
228228
},
229-
// {
230-
// enforce : 'pre',
231-
// test : /\.js$/,
232-
// include : [
233-
// path.resolve('src/')
234-
// ],
235-
// exclude : [
236-
// /(node_modules|bower_components)/,
237-
// ],
238-
// loader : 'babel-istanbul-loader',
239-
// },
229+
{
230+
enforce : 'post',
231+
test : /\.js$/,
232+
use: {
233+
loader : 'istanbul-instrumenter-loader',
234+
options : {
235+
esModules : true,
236+
},
237+
},
238+
include : [
239+
path.resolve('src/')
240+
],
241+
exclude : [
242+
/(node_modules|bower_components)/,
243+
],
244+
},
240245
{
241246
test : /vertx-eventbus\.js$/,
242247
loader : 'imports-loader',
@@ -261,12 +266,19 @@ module.exports = function (config) {
261266
noInfo : true
262267
},
263268

264-
coverageReporter : (() => {
269+
coverageIstanbulReporter : (() => {
265270
if (isDefaultScope(scope)) {
266271
return {
272+
fixWebpackSourcePaths: true,
273+
reports: [
274+
'text-summary',
275+
'lcovonly',
276+
],
267277
dir : 'build/coverage',
268-
subdir : 'report',
269-
type : 'lcov'
278+
lcovonly: {
279+
subdir : 'report',
280+
type : 'lcov',
281+
},
270282
};
271283
}
272284
})(),
@@ -306,7 +318,11 @@ module.exports = function (config) {
306318
} else if (process.env.TRAVIS) {
307319
browsers.push('Firefox');
308320
} else {
309-
browsers.push('Chrome');
321+
if (process.env.NO_HEADLESS) {
322+
browsers.push('Chrome');
323+
} else {
324+
browsers.push('ChromeHeadless');
325+
}
310326
}
311327
return browsers;
312328
})(),

0 commit comments

Comments
 (0)