Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis ci fails with mocha+coveralls

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'
like image 605
user1553777 Avatar asked Apr 26 '15 13:04

user1553777


1 Answers

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

language: node_js
node_js:
  - "node"
like image 113
Daniel Richter Avatar answered Sep 25 '22 21:09

Daniel Richter