Skip to content

Commit 07325fb

Browse files
committed
add coverage plugin
1 parent 301788b commit 07325fb

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ cache:
1010
- $HOME/.gradle/caches/
1111
- $HOME/.gradle/wrapper/
1212
script:
13-
- "./gradlew clean check --continue"
13+
- "./gradlew clean check jacocoTestReport --continue"
14+
after_success:
15+
- bash <(curl -s https://codecov.io/bash)
1416
branches:
1517
only:
1618
- v3

lib/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apply plugin: 'jacoco'
12
apply plugin: 'java'
23

34
compileJava {
@@ -13,3 +14,9 @@ dependencies {
1314
testCompile 'org.hamcrest:hamcrest-library:1.3'
1415
testCompile 'org.mockito:mockito-core:2.2.8'
1516
}
17+
18+
jacocoTestReport {
19+
reports {
20+
html.enabled true
21+
}
22+
}

0 commit comments

Comments
 (0)