From 0ec25d21abe418c0ce2d157e576893cd659ea3f1 Mon Sep 17 00:00:00 2001 From: Nick Cross Date: Thu, 7 Jan 2021 12:18:03 +0000 Subject: [PATCH] NCL-6078 Add code coverage --- .travis.yml | 11 +++++++---- build.gradle.kts | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a228a759..3728373b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ jobs: - stage: test name: "Gradle 5.6.4" if: type = pull_request - script: "travis-wait-enhanced --timeout=60m --interval=4m -- ./gradlew --no-daemon --stacktrace clean build" + script: "travis-wait-enhanced --timeout=60m --interval=4m -- ./gradlew --no-daemon --stacktrace clean build AggregateJacocoReport" - stage: test name: "Gradle 6.4.1" @@ -52,7 +52,7 @@ jobs: script: - export GRADLE_HOME=$HOME/bin/gradle-6.4.1 - export PATH=$GRADLE_HOME/bin:$PATH - - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build + - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build AggregateJacocoReport - stage: test name: "Gradle 6.5.1" @@ -60,7 +60,7 @@ jobs: script: - export GRADLE_HOME=$HOME/bin/gradle-6.5.1 - export PATH=$GRADLE_HOME/bin:$PATH - - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build + - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build AggregateJacocoReport - stage: test name: "Gradle 6.7.1" @@ -68,4 +68,7 @@ jobs: script: - export GRADLE_HOME=$HOME/bin/gradle-6.7.1 - export PATH=$GRADLE_HOME/bin:$PATH - - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build + - travis-wait-enhanced --timeout=60m --interval=4m -- gradle --no-daemon --stacktrace clean build AggregateJacocoReport + +after_success: + - '[ "$TRAVIS_OS_NAME" = "linux" ] && bash <(curl -s https://codecov.io/bash) -f build/reports/jacoco/aggregate/jacocoTestReport.xml' diff --git a/build.gradle.kts b/build.gradle.kts index 0c9479a5..90913b18 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,6 +21,7 @@ plugins { id("net.linguica.maven-settings") version "0.5" id("net.researchgate.release") version "2.8.1" id("org.ajoberstar.grgit") version "4.1.0" + id("org.kordamp.gradle.jacoco") version "0.42.1" } apply(plugin = "net.researchgate.release")