8

travis ci fails as the out put of reporter is empty string.

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 in my local.

> 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'
user1553777
  • 241
  • 3
  • 7

2 Answers2

1

You need to tell Travis CI to install the latest node before execution:

language: node_js
node_js:
  - "node"
Daniel Richter
  • 340
  • 1
  • 5
  • 25
0

It is because some tools is working only with latest version of node. I had the sample problem until i change version of node in my .travis.yaml:

node_js:
- "6"
Svetlana Linuxenko
  • 466
  • 1
  • 6
  • 16