Skip to content

Commit

Permalink
Add CodeCov for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
simonepri committed Jun 13, 2017
1 parent 5ade935 commit 490cde9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: java
sudo: false # faster builds
jdk:
- oraclejdk8
before_cache:
Expand All @@ -7,4 +8,6 @@ before_cache:
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.gradle/wrapper/
after_success:
- bash <(curl -s https://codecov.io/bash)
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
*/

// Apply the java-library plugin to add support for Java Library

apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'jacoco'

// In this section you declare where to find the dependencies of your project
repositories {
Expand All @@ -26,3 +29,10 @@ dependencies {
testImplementation 'junit:junit:4.12'
}

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

0 comments on commit 490cde9

Please sign in to comment.