Skip to content

Commit

Permalink
add code coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamz-22 committed Jan 6, 2018
1 parent 613d9e1 commit 506950c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ language: java
dist: trusty
jdk:
- oraclejdk8
- openjdk8
- openjdk8
after_success:
- bash <(curl -s https://codecov.io/bash)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ buildscript {
}

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'org.springframework.boot'


Expand Down Expand Up @@ -55,4 +56,13 @@ artifacts {
archives javadocJar, sourcesJar
}

jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}

check.dependsOn jacocoTestReport

apply from: 'publishToMaven.gradle'

0 comments on commit 506950c

Please sign in to comment.