Skip to content

Commit

Permalink
Add Jacoco and Codecov, implements #87 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfs authored Sep 10, 2020
1 parent 793a9d4 commit 5d5c7e8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
language: java

script: ./gradlew check javadoc

# upload JaCoCo report to codecov
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Build Status](https://travis-ci.org/dmfs/lib-recur.svg?branch=master)](https://travis-ci.org/dmfs/lib-recur)
[![codecov](https://codecov.io/gh/dmfs/lib-recur/branch/master/graph/badge.svg)](https://codecov.io/gh/dmfs/lib-recur)
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/dmfs/lib-recur.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/dmfs/lib-recur/context:java)

# lib-recur

Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ configurations {
}

apply from: 'publish.gradle'
apply from: 'jacoco.gradle'

allprojects {
group 'org.dmfs'
Expand Down
10 changes: 10 additions & 0 deletions jacoco.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apply plugin: "jacoco"

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

check.dependsOn jacocoTestReport

0 comments on commit 5d5c7e8

Please sign in to comment.