8

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'
4

2 回答 2

1

您需要在执行前告诉 Travis CI 安装最新的节点:

language: node_js
node_js:
  - "node"
于 2019-08-26T03:18:06.750 回答
0

这是因为某些工具仅适用于最新版本的节点。在我更改节点版本之前,我遇到了示例问题.travis.yaml

node_js:
- "6"
于 2016-10-21T07:56:02.577 回答