Skip to content

Commit 2e690b0

Browse files
authored
Merge pull request #486 from qiniu/open_java_sdk
modify the travis.yaml
2 parents 46ea0ec + 5ac20bc commit 2e690b0

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: java
22

3+
install:
4+
- npm install
5+
36
env:
47
global:
58
- QINIU_ACCESS_KEY=vHg2e7nOh7Jsucv2Azr5FH6omPgX22zoJRWa0FN5
@@ -8,3 +11,6 @@ env:
811

912
script:
1013
- ./gradlew test -d
14+
- ./gradlew jacocoTestReport
15+
- npx codecov
16+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
[![@qiniu on weibo](http://img.shields.io/badge/weibo-%40qiniutek-blue.svg)](http://weibo.com/qiniutek)
33
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
44
[![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)
57
[![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)
68
## 安装
79

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)