Travis ci fails with mocha+coveralls
Asked Answered
C

2

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'
Cott answered 26/4, 2015 at 13:18 Comment(2)
What do you have in your .travis.yml?Jake
I've faced a similar problem, hope this post might help you a little bit.Honor
J
1

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

language: node_js
node_js:
  - "node"
Jake answered 26/8, 2019 at 3:18 Comment(0)
H
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"
Helminthic answered 21/10, 2016 at 7:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.