add jacoco and travis ci

This commit is contained in:
mgabriel 2018-08-15 13:59:40 +02:00
parent 416f911087
commit c1ebdbe776
2 changed files with 22 additions and 1 deletions

13
.travis.yml Normal file
View File

@ -0,0 +1,13 @@
language: java
jdk:
- oraclejdk8
- oraclejdk9
sudo: false
before_install:
- chmod +x ./gradlew
script:
- ./gradlew check
- ./gradlew javadoc
- ./gradlew jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -11,6 +11,7 @@ group 'com.mgabriel'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
@ -38,7 +39,14 @@ test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
html.enabled true
csv.enabled false
}
}