Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
DannaGuo committed Sep 25, 2018
1 parent 3a10c46 commit 007bf5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ cache:
script:
- sh tron.sh
- "./gradlew build"
- "./gradlew jacocoTestReport"
- bash deploy.sh

after_success:
- "bash <(curl -s https://codecov.io/bash) -t 060bb400-c6fe-4d5f-a6c8-427105c746ac -s build/reports/jacoco/"

skip_build:
- README.md:
- LICENSE
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<img src="https://travis-ci.org/tronprotocol/java-tron.svg?branch=develop">
</a>

<a href="https://codecov.io/gh/tronprotocol/java-tron">
<img src="https://codecov.io/gh/tronprotocol/java-tron/branch/develop/graph/badge.svg" />
</a>

<a href="https://github.com/tronprotocol/java-tron/issues">
<img src="https://img.shields.io/github/issues/tronprotocol/java-tron.svg">
</a>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ task stest(type: Test) {

jacocoTestReport {
reports {
xml.enabled false
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
Expand Down

0 comments on commit 007bf5f

Please sign in to comment.