Overalls not working with Travis

I am building a Java application using gradle as a build tool. I am using Travis CI and want to get code coverage using Coveralls.

But when the class builds my project, I get the following output:

HTTP / 1.1 422 Non-Process Organization

[Server: cloudflare-nginx, Date: Thu, Nov 13, 2014 2:31:33 PM GMT, Content-Type: application / json; charset = utf-8, Transfer-Encoding: chunked, Connection: keep-alive, Set-Cookie: __cfduid = d46e83ad1141ffa7f92b62a3064e1bdc11415889091; expires = Fri, 13-Nov-15 14:31:31 GMT; Path = /; domain = .coveralls.io; HttpOnly, Status: 422 Unprocessable Entity, X-UA-Compatible: IE = Edge, chrome = 1, Cache-Control: no-cache, Set-Cookie: request_method = POST; path = /, X-Request-Id: 0f27c4be254c74919ad8a0365f9ca6f6, X-Runtime: 0.830221, X-Rack-Cache: invalidate, pass, X-Powered-By: Phusion Passenger 4.0.47, Set-Cookie: LSW_WEB = "LSW_WEB2"; path = /, CF-RAY: 188bac68b44e0874-IAD]

[error: true, message: Could not find a repository matching this task.]

I use cobertura to cover the code.

Thanks x

+6
source share
2 answers

To use Coveralls with Gradle and Travis, I use the Coverall Gradle plugin ( com.github.kt3k.coveralls ) and the team after success in Travis.

The readme plugin explains its use very well. But if you want to test the example, you can refer to the project in which I use it: Sabina Java

Corresponding files: .travis.yml and build.gradle

Just a hint: you can enable logging in Travis by adding the --info flag to commands to help you spot errors.

I hope this will be useful after such a long time.

+4
source

I also got this error (could not find the repository matching this task.) When I specified the repo token. Coveralls documentation suggested specifying a repo token, but it didn’t make it clear to me that you should not specify a repo token if you use public repositories.

In other words, if your materials are published on GitHub and in Coveralls, do not specify the repo token, or you will get this error.

+2
source

Source: https://habr.com/ru/post/978143/


All Articles