Skip to content

Commit

Permalink
Add Coveralls plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
szpak committed Oct 30, 2014
1 parent 5ea31d0 commit cb2fe27
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -5,5 +5,9 @@ jdk:
- openjdk7
- oraclejdk8

env:
- TERM=dumb

install: ./gradlew assemble --stacktrace --info
script: ./gradlew check --stacktrace --info
script: ./gradlew check jacocoTestReport --stacktrace --info --continue
after_success: ./gradlew coveralls --stacktrace --info
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
jFairy [![Build Status](https://travis-ci.org/Codearte/jfairy.png)](https://travis-ci.org/Codearte/jfairy) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jfairy/jfairy/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jfairy/jfairy)
jFairy [![Build Status](https://travis-ci.org/Codearte/jfairy.png)](https://travis-ci.org/Codearte/jfairy) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.jfairy/jfairy/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.jfairy/jfairy) [![Coverage Status](https://img.shields.io/coveralls/Codearte/jfairy.svg)](https://coveralls.io/r/Codearte/jfairy)
==============

Java fake data generator
Expand Down
14 changes: 11 additions & 3 deletions build.gradle
Expand Up @@ -4,6 +4,7 @@ apply plugin: 'maven'
apply plugin: 'uploadAuth'
apply plugin: "sonar-runner"
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'pitest'
apply plugin: 'idea'
apply plugin: 'versions'
Expand All @@ -17,12 +18,13 @@ buildscript {
repositories {
mavenCentral()
mavenLocal()
maven { url "https://github.com/ben-manes/gradle-versions-plugin/raw/mvnrepo" }
maven { url "https://github.com/ben-manes/gradle-versions-plugin/raw/mvnrepo" }
}
dependencies {
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.0.0'
classpath 'org.hibernate.build.gradle:gradle-upload-auth-plugin:1.1.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.5-beta-2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.5-beta-2'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1'
}
}

Expand Down Expand Up @@ -187,6 +189,13 @@ test {
}
}

jacocoTestReport {
reports {
xml.enabled true
csv.enabled true
}
}

wrapper {
gradleVersion '2.2-rc-1'
}
Expand All @@ -197,4 +206,3 @@ boolean determineIfJacocoShouldBeEnabled() {
logger.debug "Is JaCoCo enabled: $shouldBeEnabled"
shouldBeEnabled
}

0 comments on commit cb2fe27

Please sign in to comment.