kt3k / coveralls-gradle-plugin

👨‍🔧 gradle plugin for coveralls
https://plugins.gradle.org/plugin/com.github.kt3k.coveralls
MIT License
253 stars 54 forks source link

handle travis-pro (was: Coveralls throws a 500 error using gradle+jaCoCo) #4

Closed dhalperi closed 10 years ago

dhalperi commented 10 years ago

See https://github.com/lemurheavy/coveralls-public/issues/212

I wonder if you might have insight or have advice as to how I should debug this.

Note that I am using coveralls with a private repository and travis pro/coveralls pro. Have you tested this use case before?

Thanks!

kt3k commented 10 years ago

I have never used Travis Pro or Coveralls Pro and so I don't figure out the situation precisely.

But did you try --info (or --debug) option on gradle command (like gradle --info coveralls)? This should show the entire JSON string sent to coveralls.io. This should help to isolate the cause of the problem.

dhalperi commented 10 years ago

Hi @kt3k ,

Following your advice I was able to extract the JSON string sent to coveralls.io, and then I was able to tweak it to work. Here's what I had to do:

  1. Change the service_name field to travis-pro from travis-ci.
  2. Add a field repo_token which maps to my repository's private token on coveralls.io.

I wonder if we can add support for this to coveralls-gradle-plugin?

kt3k commented 10 years ago

Thanks for reporting in detail!

And I'm sorry for the inconvenience.

Any pull request is welcome! :)