Travis ci fails with mocha + jumpsuits

travis ci fails because the original reporter is an empty line.

NODE_ENV=test YOURPACKAGE_COVERAGE=1 mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js

It works fine on my local network.

> mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
[error] "2015-04-26T12:41:57.904Z"  'error from lcovParse: ' 'Failed to parse string'
[error] "2015-04-26T12:41:57.906Z"  'input: ' ''
[error] "2015-04-26T12:41:57.906Z"  'error from convertLcovToCoveralls'
+7
source share
2 answers

This is because some tools only work with the latest version of node. I had a problem with the sample until I changed the version of node in mine .travis.yaml:

node_js:
- "6"
0
source

You must tell Travis CI to install the last node before executing:

language: node_js
node_js:
  - "node"
0
source

Source: https://habr.com/ru/post/1584735/


All Articles