aboutsummaryrefslogtreecommitdiffstats
path: root/app/build.gradle
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2015-07-17 07:51:47 -0700
committerKenny Root <kenny@the-b.org>2015-07-17 07:51:47 -0700
commit97a73ae7ef79f4fec6e39c6eedd327a3e74d244d (patch)
tree3d54c9d6cfa0fad263e977e2c7dfc85a77d6e9f4 /app/build.gradle
parent2673c984501123986f24c3df355d3c2e4c09473a (diff)
downloadconnectbot-97a73ae7ef79f4fec6e39c6eedd327a3e74d244d.tar.gz
connectbot-97a73ae7ef79f4fec6e39c6eedd327a3e74d244d.tar.bz2
connectbot-97a73ae7ef79f4fec6e39c6eedd327a3e74d244d.zip
Add coverage support
This will export the coverage report to coveralls.io as well (from Travis CI).
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 9118576..ca76cf3 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,8 +1,19 @@
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
+apply plugin: 'com.github.kt3k.coveralls'
apply from: '../config/quality.gradle'
apply from: '../config/translations.gradle'
+buildscript {
+ repositories {
+ jcenter()
+ }
+
+ dependencies {
+ classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.+'
+ }
+}
+
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
@@ -50,10 +61,13 @@ android {
debug {
applicationIdSuffix ".debug"
+ testCoverageEnabled true
}
}
}
+coveralls.jacocoReportPath = 'build/reports/coverage/debug/report.xml'
+
dependencies {
testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0') {