diff --git a/.travis.yml b/.travis.yml index 0200cea..a680680 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,4 +2,6 @@ language: java dist: trusty jdk: - oraclejdk8 -- openjdk8 \ No newline at end of file +- openjdk8 +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 27780fe..ffbe705 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Conditional Profiles [![Build Status](https://travis-ci.org/shyamz-22/conditional-profiles.svg?branch=master)](https://travis-ci.org/shyamz-22/conditional-profiles) +[![codecov](https://codecov.io/gh/shyamz-22/conditional-profiles/branch/master/graph/badge.svg)](https://codecov.io/gh/shyamz-22/conditional-profiles) ### Default Spring profile behavior ```@Profile("A", "B")``` on a bean , Creates that bean when Profile A or B is active. diff --git a/build.gradle b/build.gradle index 2261c5a..0fa9cc4 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,7 @@ buildscript { } apply plugin: 'java' +apply plugin: 'jacoco' apply plugin: 'org.springframework.boot' @@ -55,4 +56,13 @@ artifacts { archives javadocJar, sourcesJar } +jacocoTestReport { + reports { + xml.enabled true + html.enabled false + } +} + +check.dependsOn jacocoTestReport + apply from: 'publishToMaven.gradle'