Skip to content

Commit

Permalink
Add JaCoCo for CodeCov (#66)
Browse files Browse the repository at this point in the history
Add JaCoCo for CodeCov
  • Loading branch information
cortinico committed Sep 16, 2019
2 parents ed70186 + bb42b39 commit c286c40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ script:
- ./gradlew generateSwagger
- ./gradlew assembleDebug
- ./gradlew check
- bash <(curl -s https://codecov.io/bash)
16 changes: 16 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
java
`kotlin-dsl`
`maven-publish`
jacoco
kotlin("jvm") version "1.3.41"
id("com.gradle.plugin-publish") version "0.10.0"
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC16"
Expand All @@ -17,6 +18,10 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

jacoco {
toolVersion = "0.8.4"
}

dependencies {
implementation(kotlin("stdlib-jdk8"))

Expand Down Expand Up @@ -55,3 +60,14 @@ detekt {
buildUponDefaultConfig = true
filters = ".*/resources/.*,.*/build/.*"
}

tasks.jacocoTestReport {
reports {
xml.isEnabled = true
csv.isEnabled = false
}
}

tasks.check {
dependsOn(tasks.jacocoTestReport)
}

0 comments on commit c286c40

Please sign in to comment.