GithubHelp home page GithubHelp logo

dhalperi / coveralls-gradle-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kt3k/coveralls-gradle-plugin

0.0 2.0 0.0 327 KB

gradle plugin for coveralls

License: MIT License

Groovy 100.00%

coveralls-gradle-plugin's Introduction

coveralls-gradle-plugin v0.3.1

Build Status Coverage Status

Send coverage data to coveralls.io.

Usage

use with cobertura reporter

Add following lines to build.gradle:

apply plugin: 'cobertura'
apply plugin: 'coveralls'

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'net.saliman:gradle-cobertura-plugin:2.0.0' // cobertura plugin
        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.3.1'
    }
}

cobertura.coverageFormats = ['html', 'xml'] // coveralls plugin depends on xml format report

And run coveralls task after cobertura task.

This plugin now supports Travis-CI only. Sample .travis.yml looks like following:

language: java

jdk:
- oraclejdk7

env:
- TERM=dumb

after_success:
- gradle cobertura coveralls

For groovy projects, add a following line to build.gradle:

cobertura.coverageSourceDirs = sourceSets.main.groovy.srcDirs

use with JaCoCo plugin

Add following lines to build.gradle:

apply plugin: 'jacoco'
apply plugin: 'coveralls'

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:0.3.0'
    }
}

jacocoTestReport {
    reports {
        xml.enabled = true // coveralls plugin depends on xml format report
        html.enabled = true
    }
}

Sample .travis.yml looks like following:

language: java

jdk:
- oraclejdk7

env:
- TERM=dumb

after_success:
- gradle jacocoTestReport coveralls

use with Travis-CI Pro & Coveralls Pro

When using Travis-CI Pro, you must provide your Coveralls Pro repo token in the COVERALLS_REPO_TOKEN environment variable in .travis.yml.

env:
  global:
    - COVERALLS_REPO_TOKEN=mySecRetRepoToken

You may also use a secure environment variable to hold COVERALLS_REPO_TOKEN by following the instructions on docs.travis-ci.com.

env:
  global:
    - secure: <encrypted string here>

Examples

License

MIT License ( Yoshiya Hinosawa )

Release History

  • 2014-03-15 v0.3.1 Upgrade HttpBuilder to v0.7.1. (issue #8)
  • 2014-03-11 v0.3.0 Make coverage report paths configurable. (issue #6)
  • 2014-02-19 v0.2.5 Added the support of Travis Pro. (issue #4, via @dhalperi)
  • 2014-01-21 v0.2.4 Fixed the case of absent source files. (issue #3)
  • 2013-12-09 v0.2.1 Added JaCoCo support. (via @ihiroky)
  • 2013-11-02 v0.1.6 Changed distribution repository from Github to Maven central.
  • 2013-10-27 v0.1.5 Fixed the case of multiple <source> tags. (via @bric3)

coveralls-gradle-plugin's People

Contributors

bric3 avatar dhalperi avatar ihiroky avatar kt3k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.