File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
language : java
2
2
3
+ install :
4
+ - npm install
5
+
3
6
env :
4
7
global :
5
8
- QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5
8
11
9
12
script :
10
13
- ./gradlew test -d
14
+ - ./gradlew jacocoTestReport
15
+ - npx codecov
16
+
Original file line number Diff line number Diff line change 2
2
[ ![ @qiniu on weibo] ( http://img.shields.io/badge/weibo-%40qiniutek-blue.svg )] ( http://weibo.com/qiniutek )
3
3
[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg )] ( LICENSE )
4
4
[ ![ Build Status] ( https://travis-ci.org/qiniu/java-sdk.svg )] ( https://travis-ci.org/qiniu/java-sdk )
5
+ [ ![ GitHub release] ( https://img.shields.io/github/v/tag/qiniu/java-sdk.svg?label=release )] ( https://github.com/qiniu/java-sdk/releases )
6
+ [ ![ Coverage Status] ( https://codecov.io/gh/qiniu/java-sdk/branch/master/graph/badge.svg )] ( https://codecov.io/gh/qiniu/java-sdk )
5
7
[ ![ Latest Stable Version] ( https://img.shields.io/maven-central/v/com.qiniu/qiniu-java-sdk.svg )] ( http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.qiniu%22%20AND%20a%3A%22qiniu-java-sdk%22 )
6
8
## 安装
7
9
Original file line number Diff line number Diff line change 1
1
import java.util.regex.Matcher
2
2
3
3
apply plugin : ' java'
4
+ apply plugin : ' jacoco'
4
5
5
6
sourceCompatibility = 1.7
6
7
targetCompatibility = 1.7
@@ -11,6 +12,13 @@ repositories {
11
12
mavenCentral()
12
13
}
13
14
15
+ jacocoTestReport {
16
+ reports {
17
+ xml. enabled true
18
+ html. enabled false
19
+ }
20
+ }
21
+
14
22
dependencies {
15
23
implementation group : ' com.squareup.okhttp3' , name : ' okhttp' , version : ' 3.14.4'
16
24
implementation ' com.google.code.gson:gson:2.8.5'
You can’t perform that action at this time.
0 commit comments