Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error from convertLcovToCoveralls for Travis-ci with latest Node (11.7.0) #207

Open
YuriGor opened this issue Jan 22, 2019 · 4 comments
Open

Comments

@YuriGor
Copy link

YuriGor commented Jan 22, 2019

Coverall report fails for latest Node on Travis
failed build example

0.65s$ npm run coverage
> mongoose-slug-updater@3.1.3 coverage /home/travis/build/YuriGor/mongoose-slug-updater
> nyc report --reporter=text-lcov | coveralls
[error] "2019-01-20T08:06:22.579Z"  'error from lcovParse: ' 'Failed to parse string'
[error] "2019-01-20T08:06:22.582Z"  'input: ' ''
[error] "2019-01-20T08:06:22.582Z"  'error from convertLcovToCoveralls'
/home/travis/build/YuriGor/mongoose-slug-updater/node_modules/coveralls/bin/coveralls.js:18
        throw err;
        ^
Failed to parse string
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mongoose-slug-updater@3.1.3 coverage: `nyc report --reporter=text-lcov | coveralls`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mongoose-slug-updater@3.1.3 coverage script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/travis/.npm/_logs/2019-01-20T08_06_22_590Z-debug.log
Done. Your build exited with 0.

Fixed by setting node version to 11.0.0 in .travis.yml:

language: node_js
node_js:
  - "v11.0.0"
after_success: npm run coverage
@circa10a
Copy link

It worked when I switched back to node LTS(10.15.0)

@YuriGor
Copy link
Author

YuriGor commented Jan 25, 2019

Looks like this issue related to this one:
istanbuljs/nyc#973

@stevenvachon
Copy link

Same issue with Node.js v12.0 since this was never fixed.

pithu added a commit to js-joda/js-joda that referenced this issue Jul 3, 2019
Downgrading could fix the issue with coveralls as described here nickmerwin/node-coveralls#207
@jtwebman
Copy link

jtwebman commented Mar 6, 2022

Since this library doesn't seem to be supported anymore I fix a bunch of things on a fork if you want to check it out and are still pulling the library into your packages: https://github.com/jtwebman/coveralls-next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants