diff --git a/README.md b/README.md index b0ac279..ff0c511 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ JWebAssembly [![Build Status](https://travis-ci.org/i-net-software/JWebAssembly.svg)](https://travis-ci.org/i-net-software/JWebAssembly) [![License](https://img.shields.io/github/license/i-net-software/jwebassembly.svg)](https://github.com/i-net-software/jwebassembly/blob/master/LICENSE.txt) +[![Coverage Status](https://coveralls.io/repos/github/i-net-software/JWebAssembly/badge.svg?branch=master)](https://coveralls.io/github/i-net-software/JWebAssembly?branch=master) JWebAssembly is a Java to [WebAssembly](http://webassembly.org/) compiler. It uses Java class files as input. That it can compile any language that compile to Java bytecode. As output it generates the binary format (.wasm file) or the text format (.wat file). diff --git a/build.gradle b/build.gradle index ee3f901..e8a5c31 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,8 @@ plugins { apply plugin: 'java' +version = '0.1' + repositories { jcenter() } @@ -56,3 +58,19 @@ test { testLogging.exceptionFormat = 'full' } + +/**************************************** + * Coverage + ****************************************/ +apply plugin: 'jacoco' +apply plugin: 'com.github.kt3k.coveralls' + +jacocoTestReport { + tasks.coveralls.dependsOn it + reports { + xml.enabled = true // coveralls plugin depends on xml format report + html.enabled = true + } +} +check.dependsOn tasks.coveralls +