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

Commit 5287faf

Browse files
committed
Merge branch 'feature/node8' into canary
2 parents d7f1362 + 3e3c6ab commit 5287faf

File tree

5 files changed

+10248
-22
lines changed

5 files changed

+10248
-22
lines changed

.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: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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
})(),

0 commit comments

Comments
 (0)