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

Better detection of travis-ci vs pro #15

Closed igr closed 9 years ago

igr commented 10 years ago

Currently if there is an env variable for repo token, plugin assumes it is travis-pro. This is not entirely correct. Since I have some integration tests, I am sending jacoco reports from my computer, not from travis. For this I need the env variable to be set, and yet I am using travis-ci not pro.

kevin-lee commented 9 years ago

I have this problem too. The problem can be easily solved if coveralls-gradle-plugin doesn't ignore the environment variables for the serviceName which is CI_NAME. AS you can see, it is not used at all. So I think the CI_NAME should be also checked here and used here.

kevin-lee commented 9 years ago

I've just uploaded the fixed one to my bintray repo and it works. Now I can see Coveralls's test coverage results.

If you want to test it, add the following info accordingly in your build.gradle.

buildscript {
  repositories {
    jcenter()
    mavenCentral()
    maven {
      url  "http://dl.bintray.com/kevinlee/maven"
    }
  }
  dependencies {
    classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.3.2'
  }
}