1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

Add jacoco and coveralls gradle plugins

This commit is contained in:
Florian Schmaus 2015-03-12 15:44:53 +01:00
parent 41b74ec13c
commit 03206fcbf6
3 changed files with 19 additions and 1 deletions

View file

@ -5,3 +5,5 @@ android:
install: gradle assemble install: gradle assemble
script: gradle check script: gradle check
after_success:
- gradle jacocoTestReport coveralls

View file

@ -1,7 +1,7 @@
Smack 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 About
----- -----

View file

@ -8,6 +8,7 @@ buildscript {
dependencies { dependencies {
classpath 'org.kordamp:markdown-gradle-plugin:1.0.0' classpath 'org.kordamp:markdown-gradle-plugin:1.0.0'
classpath 'org.kordamp.gradle:clirr-gradle-plugin:0.1.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' apply plugin: 'org.kordamp.gradle.markdown'
@ -181,7 +182,9 @@ subprojects {
apply plugin: 'osgi' apply plugin: 'osgi'
apply plugin: 'signing' apply plugin: 'signing'
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'org.kordamp.gradle.clirr' apply plugin: 'org.kordamp.gradle.clirr'
apply plugin: "com.github.kt3k.coveralls"
checkstyle { checkstyle {
configFile = new File(rootConfigDir, 'checkstyle.xml') configFile = new File(rootConfigDir, 'checkstyle.xml')
@ -286,6 +289,19 @@ subprojects {
baseline = [group, name, clirrBaseline].join(':') baseline = [group, name, clirrBaseline].join(':')
failOnErrors clirrFailOnErrors 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 { subprojects*.jar {