From 135886374a219fba9b7a91ea031338566ea01ec7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 21 Feb 2020 09:43:01 +0000 Subject: [PATCH] Use codecov for coverage visualisation --- .travis.yml | 2 ++ README.md | 1 + codecov.yml | 1 + pom.xml | 19 +++++++++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 codecov.yml diff --git a/.travis.yml b/.travis.yml index 54e21c64..7acede1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ matrix: build_command: mvn -B -q clean package -DskipTests=true branch_pattern: master - jdk: openjdk8 + after_success: + - bash <(curl -s https://codecov.io/bash) - jdk: oraclejdk9 before_install: # The OpenJDK9's CA bundle is outdated, so we're using the system's ones. diff --git a/README.md b/README.md index 8931c857..0c8aee8f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Airsonic [![Coverity scan](https://scan.coverity.com/projects/17971/badge.svg)](https://scan.coverity.com/projects/airsonic) [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/airsonic/airsonic.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/airsonic/airsonic/context:javascript) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/airsonic/airsonic.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/airsonic/airsonic/context:java) +[![codecov.io coverage](https://codecov.io/gh/airsonic/airsonic/branch/master/graph/badge.svg)](https://codecov.io/gh/airsonic/airsonic) What is Airsonic? ----------------- diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..69cb7601 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false diff --git a/pom.xml b/pom.xml index 588befce..ffe0b204 100644 --- a/pom.xml +++ b/pom.xml @@ -333,6 +333,25 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + + prepare-agent + + + + report + test + + report + + + + org.apache.maven.plugins maven-compiler-plugin