2015-04-26 51 views
4

travis ci失败,因为记者的输出是空串。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' 

回答

0

这是因为有些工具只能用最新版本的节点工作。我有示例问题,直到我改变我的节点版本.travis.yaml

node_js: 
- "6"