add jacoco and travis ci
This commit is contained in:
parent
416f911087
commit
c1ebdbe776
13
.travis.yml
Normal file
13
.travis.yml
Normal 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)
|
10
build.gradle
10
build.gradle
@ -11,6 +11,7 @@ group 'com.mgabriel'
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
@ -38,7 +39,14 @@ test {
|
|||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
reports {
|
||||||
|
xml.enabled true
|
||||||
|
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
|
||||||
|
html.enabled true
|
||||||
|
csv.enabled false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user