TravisCI builds are passing for my open-source project, and I'm now trying to integrate gulp-coveralls. On Coveralls.io, no builds can be found for my repository, even though Travis builds have run successfully since I added my repo to Coveralls.

TravisCI构建正在为我的开源项目传递,我现在正在尝试整合gulp-coveralls。在Coveralls.io上,我的存储库中找不到任何构建,即使Travis构建已成功运行,因为我将我的repo添加到Coveralls。

'There have been no builds for this repo.'

When I try to run my gulp-coveralls gulp task, I get this error:

当我尝试运行我的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)

Here's what I've got so far:

这是我到目前为止所得到的:

gulp-coveralls in my dev dependencies in package.json

在package.json中我的dev依赖项中的gulp-coveralls

gulpfile.js:

gulpfile.js:

var coveralls = require('gulp-coveralls');
...
gulp.task('coveralls', function () {
gulp.src('coverage/**/lcov.info')
  .pipe(coveralls());
});

karma.conf.js:

karma.conf.js:

coverageReporter: {
    type : 'lcov',
    dir : 'coverage/'
}

Github: https://github.com/lithiumtech/angular-embedly

Github:https://github.com/lithiumtech/angular-embedly

I use Karma and PhantomJS to run my tests. The file coverage/lcov.info is definitely being generated. Any idea what could be going on?

我使用Karma和PhantomJS来运行我的测试。文件覆盖率/ lcov.info肯定是生成的。知道会发生什么吗?

3 个解决方案

#1


4

Sarah,

莎拉,

What you are missing is a coveralls repository token. You must go to coveralls.io and create a login using your GitHub account. This will then pull all your repos into coveralls. Then for the repo that you want to use coveralls with, you turn coveralls on by clicking the "Off" switch.

您缺少的是工作服存储库令牌。您必须前往coveralls.io并使用您的GitHub帐户创建登录。这将把你所有的回购拉成工作服。然后,对于您想要使用工作服的回购,您可以通过单击“关闭”开关打开工作服。

Now click the "view on coveralls" button and it will show you your repo key. You can then set it up by creating a .coveralls.yml file and copying your keys into that file. This should solve your problem.

现在点击“工作服上的视图”按钮,它会显示你的回购键。然后,您可以通过创建.coveralls.yml文件并将密钥复制到该文件中来进行设置。这应该可以解决您的问题。

更多相关文章

  1. 利用javascript实现遍历xml文件的代码实例
  2. 使用jQuery导出JSON(外部文件)导入数据的度假输出
  3. JQuery纯前端导入Excel文件,兼容IE10及IE9版本以下浏览器处理方法
  4. 根据AngularJS中的条件制作输入类型文件[duplicate]
  5. 如何使用django从静态文件加载静态文件?
  6. 没有AJAX的拖放文件上传,在前台同步?
  7. 简单实现一个文件上传的进度条
  8. 如何使用Valums Ajax文件上传器触发上传文件?
  9. 如何获得mp3文件的大小和持续时间?

随机推荐

  1. LeetCode 题解 | 1297.子串的最大出现次
  2. 像数据库一样设计你的 redux 数据结构
  3. 对比Excel学习SQL(5):分组和子查询
  4. 使用 React 实现页面过渡动画仅需四个步
  5. LeetCode 题解 | 1312. 让字符串成为回文
  6. 剑指Offer 图解 | 寻找旋转排序数组中的
  7. 我就想问一句,约么?
  8. 从 O(N) 优化到 O(logN),你的第一想法是什
  9. 神器 VS Code,超详细Python配置使用指南
  10. 世界上有哪些代码量很少,但很牛逼很经典的