TravisCI 构建正在通过我的开源项目,我现在正在尝试集成 gulp-coveralls。在 Coveralls.io 上,找不到我的存储库的构建,即使自从我将我的存储库添加到 Coveralls 以来,Travis 构建已经成功运行。
'There have been no builds for this repo.'
当我尝试运行我的 gulp-coveralls gulp 任务时,我收到此错误:
'Repo token could not be determined. Continuing without it.'
Error in plugin 'gulp-coveralls'
Bad response:422 {"message":"Couldn't find a repository matching this job.","error":true}
at handleError (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/index.js:11:30)
at sendToCoverallsCallback (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/index.js:19:9)
at /Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/index.js:31:13
at Request._callback (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/node_modules/coveralls/lib/sendToCoveralls.js:7:5)
at Request.self.callback (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/node_modules/coveralls/node_modules/request/index.js:142:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/node_modules/coveralls/node_modules/request/index.js:856:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/Users/sarah.green/angular-embedly/node_modules/gulp-coveralls/node_modules/coveralls/node_modules/request/index.js:808:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)
这是我到目前为止所得到的:
我在 package.json 中的开发依赖项中的 gulp-coveralls
gulpfile.js:
var coveralls = require('gulp-coveralls');
...
gulp.task('coveralls', function () {
gulp.src('coverage/**/lcov.info')
.pipe(coveralls());
});
业力.conf.js:
coverageReporter: {
type : 'lcov',
dir : 'coverage/'
}
Github:https ://github.com/lithiumtech/angular-embedly
我使用 Karma 和 PhantomJS 来运行我的测试。文件coverage/lcov.info 肯定正在生成。知道会发生什么吗?