Skip to content

Commit

Permalink
Add jacoco and coveralls gradle plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Mar 12, 2015
1 parent 41b74ec commit 03206fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ android:
install: gradle assemble
script: gradle check

after_success:
- gradle jacocoTestReport coveralls
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Smack
=====

[![Build Status](https://travis-ci.org/igniterealtime/Smack.svg?branch=master)](https://travis-ci.org/igniterealtime/Smack) [![Project Stats](https://www.openhub.net/p/smackxmpp/widgets/project_thin_badge.gif)](https://www.openhub.net/p/smackxmpp) [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/3480125)
[![Build Status](https://travis-ci.org/igniterealtime/Smack.svg?branch=master)](https://travis-ci.org/igniterealtime/Smack) [![Coverage Status](https://coveralls.io/repos/igniterealtime/Smack/badge.svg)](https://coveralls.io/r/igniterealtime/Smack) [![Project Stats](https://www.openhub.net/p/smackxmpp/widgets/project_thin_badge.gif)](https://www.openhub.net/p/smackxmpp) [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/thing/3480125)

About
-----
Expand Down
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath 'org.kordamp:markdown-gradle-plugin:1.0.0'
classpath 'org.kordamp.gradle:clirr-gradle-plugin:0.1.0'
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.3.1"
}
}
apply plugin: 'org.kordamp.gradle.markdown'
Expand Down Expand Up @@ -181,7 +182,9 @@ subprojects {
apply plugin: 'osgi'
apply plugin: 'signing'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'org.kordamp.gradle.clirr'
apply plugin: "com.github.kt3k.coveralls"

checkstyle {
configFile = new File(rootConfigDir, 'checkstyle.xml')
Expand Down Expand Up @@ -286,6 +289,19 @@ subprojects {
baseline = [group, name, clirrBaseline].join(':')
failOnErrors clirrFailOnErrors
}

jacoco {
toolVersion = "0.7.1.201405082137"
}

jacocoTestReport {
dependsOn test
sourceDirectories = project.files(sourceSets.main.allSource.srcDirs)
classDirectories = project.files(sourceSets.main.output)
reports {
xml.enabled true
}
}
}

subprojects*.jar {
Expand Down

0 comments on commit 03206fc

Please sign in to comment.