mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Add jacoco and coveralls gradle plugins
This commit is contained in:
parent
41b74ec13c
commit
03206fcbf6
3 changed files with 19 additions and 1 deletions
|
@ -5,3 +5,5 @@ android:
|
|||
install: gradle assemble
|
||||
script: gradle check
|
||||
|
||||
after_success:
|
||||
- gradle jacocoTestReport coveralls
|
||||
|
|
|
@ -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
|
||||
-----
|
||||
|
|
16
build.gradle
16
build.gradle
|
@ -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'
|
||||
|
@ -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')
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue