Gulp -Coveralls returns 422, no TravisCI assemblies found

TravisCI builds go through for my open source project, and now I'm trying to integrate gulp collectors. There are no compilations in Coveralls.io for my repository, although Travis builds have been successful since adding my repo to Coveralls.

'There have been no builds for this repo.'

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

'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 is what I have so far:

gulp -coveralls in my dev dependencies in package.json

gulpfile.js:

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

karma.conf.js:

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

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

I use Karma and PhantomJS to run my tests. Coverage of the /lcov.info file is definitely created. Any idea what could happen?

+4
3

, , . coveralls.io , GitHub. . , , , "".

" ", . , .coveralls.yml . .

+4

, .coveralls.yml . Travis CI, :

service_name: travis-ci
repo_token: token_given

Travis Pro:

service_name: travis-pro
repo_token: token_given

, .

0

GitHub travis-ci.org .coveralls.yml, . , LCOV , .

gulp -, LCOV gulp.src. , , , LCOV , .

LCOV, gulp -, JSON/HTML, lazy-pipe .

Full project can be found in GitHub angular-logger

// .coveralls.yml
repo_token: the_token
var jasmine = require('gulp-jasmine');
var cover = require('gulp-coverage');
var coveralls = require('gulp-coveralls');
var lazypipe = require('lazypipe');

(..)

// gulpfile.js
var testAndGather = lazypipe()
    .pipe(cover.instrument, {
        pattern: ['src/**/*.js'],
        debugDirectory: 'debug'
    })
    .pipe(jasmine, {includeStackTrace: true})
    .pipe(cover.gather);

gulp.task('test', ['build'], function () {
    gulp.src('spec/**/*spec.js')
        .pipe(testAndGather())
        .pipe(cover.format(['html']))
        .pipe(gulp.dest('reports'));
});

gulp.task('travis', ['build'], function () {
    gulp.src('spec/**/*spec.js')
        .pipe(testAndGather())
        .pipe(cover.format(['lcov']))
        .pipe(coveralls()); // directly pipe into coveralls
});

Using:

"gulp-jasmine": "~2.0.1",
"gulp-coverage": "~0.3.35",
"gulp-coveralls": "~0.1.4",
"lazypipe": "~0.2.3"
0
source

All Articles