Skip to content

Commit 5ac20bc

Browse files
钟楚君钟楚君
authored andcommitted
test02
1 parent fc4a61b commit 5ac20bc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111

1212
script:
1313
- ./gradlew test -d
14+
- ./gradlew jacocoTestReport
1415
- npx codecov
1516

16-
after_success:
17-
- bash <(curl -s https://codecov.io/bash)

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import java.util.regex.Matcher
22

33
apply plugin: 'java'
4+
apply plugin: 'jacoco'
45

56
sourceCompatibility = 1.7
67
targetCompatibility = 1.7
@@ -11,6 +12,13 @@ repositories {
1112
mavenCentral()
1213
}
1314

15+
jacocoTestReport {
16+
reports {
17+
xml.enabled true
18+
html.enabled false
19+
}
20+
}
21+
1422
dependencies {
1523
implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.4'
1624
implementation 'com.google.code.gson:gson:2.8.5'

0 commit comments

Comments
 (0)