diff --git a/.travis.yml b/.travis.yml index d5419e15fe..e33e129f73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,3 +18,9 @@ notifications: on_failure: always use_notice: true skip_join: true + +env: + - TERM=dumb + +after_success: + - ./gradlew jacocoTestReport coveralls diff --git a/README.md b/README.md index 36c2ffc7a8..725ecbcc5e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ [![Build Status](https://travis-ci.org/bitsquare/bitsquare.svg?branch=master)](https://travis-ci.org/bitsquare/bitsquare) +[![Coverage Status](https://img.shields.io/coveralls/bitsquare/bitsquare.svg)](https://coveralls.io/r/bitsquare/bitsquare) What is Bitsquare? diff --git a/build.gradle b/build.gradle index f5cfa1d98a..ded7abf36d 100644 --- a/build.gradle +++ b/build.gradle @@ -2,11 +2,15 @@ import org.apache.tools.ant.taskdefs.condition.Os plugins { id "com.github.johnrengelman.shadow" version "1.1.2" + id "com.github.kt3k.coveralls" version "2.0.1x" } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'application' +apply plugin: 'jacoco' + +wrapper.gradleVersion = '2.1' version = '0.1.0-SNAPSHOT' sourceCompatibility = 1.8 @@ -60,4 +64,9 @@ task packageNative(type:Exec, dependsOn:shadowJar) { args project.version, shadowJar.archivePath, mainClassName } -wrapper.gradleVersion = '2.1' +jacocoTestReport { + reports { + xml.enabled = true + html.enabled = true + } +}