Commit ea6e470d by Nick Schonning Committed by GitHub

Merge pull request #1583 from nschonni/fix-travis-coverage-var

Chore: Fix Coveralls conditional for Travis-CI
parents f9122164 491c3a4e
...@@ -49,7 +49,7 @@ script: ...@@ -49,7 +49,7 @@ script:
- npm test - npm test
after_success: after_success:
- if [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "4" ]; then - if [ $TRAVIS_OS_NAME == "linux" ] && [ $TRAVIS_NODE_VERSION == "4" ]; then
npm run-script coverage; npm run-script coverage;
fi fi
......
...@@ -10,7 +10,7 @@ var Mocha = require('mocha'), ...@@ -10,7 +10,7 @@ var Mocha = require('mocha'),
Instrumenter = require('istanbul').Instrumenter, Instrumenter = require('istanbul').Instrumenter,
Report = require('istanbul').Report, Report = require('istanbul').Report,
Collector = new require('istanbul').Collector, Collector = new require('istanbul').Collector,
sourcefiles = ['index.js', 'extensions.js', 'render.js'], sourcefiles = ['index.js', 'extensions.js', 'render.js', 'errors.js'],
summary= Report.create('text-summary'), summary= Report.create('text-summary'),
lcov = Report.create('lcovonly', { dir: path.join('coverage') }), lcov = Report.create('lcovonly', { dir: path.join('coverage') }),
html = Report.create('html', { dir: path.join('coverage', 'html') }); html = Report.create('html', { dir: path.join('coverage', 'html') });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment