From 777bc970d7de78c562a10e935b10b917df6b2bea Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 7 Sep 2019 19:32:43 +0100 Subject: [PATCH] Enable Coverage reporting to Codecov (#189) * [sbt] Enable Jacoco XML reports * [travis] Add coverage step with codacy * [sbt] Replace jacoco with scoverage Jacoco doesn't appear to support scala code properly, only counting some lines of a method. --- .travis.yml | 4 ++++ project/plugins.sbt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f5af1ee..bada4e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,10 @@ jobs: include: - stage: test script: sbt ++$TRAVIS_SCALA_VERSION test + - stage: coverage + script: + - sbt clean coverage test coverageAggregate + - bash <(curl -s https://codecov.io/bash) - stage: release script: sbt ++$TRAVIS_SCALA_VERSION ci-release cache: diff --git a/project/plugins.sbt b/project/plugins.sbt index 7988e6e..cb16608 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,4 +2,4 @@ addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.3.2") addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.3.1") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0") addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.4.2") -addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.1.0") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")