travis ci失败,因为报告的输出是空字符串。
NODE_ENV=test YOURPACKAGE_COVERAGE=1 mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js它在我的本地运行得很好。
> 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'发布于 2019-08-26 11:18:07
您需要告诉Travis CI在执行之前安装最新的节点:
language: node_js
node_js:
- "node"发布于 2016-10-21 15:56:03
这是因为有些工具只适用于最新版本的node。在我更改.travis.yaml中的节点版本之前,我一直有这个示例问题
node_js:
- "6"https://stackoverflow.com/questions/29878134
复制相似问题