Skip to content

Commit 1612f25

Browse files
committed
Use codecov.io for code coverage
1 parent 6bef4ce commit 1612f25

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ sudo: false
77
# script for build and release via Travis to Bintray
88
script: gradle/buildViaTravis.sh
99

10+
# Code coverage
11+
after_success:
12+
- bash <(curl -s https://codecov.io/bash)
13+
1014
# cache between builds
1115
cache:
1216
directories:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Learn more about RxJava on the <a href="https://github.com/ReactiveX/RxJava/wiki
1818
## Master Build Status
1919

2020
<a href='https://travis-ci.org/ReactiveX/RxJava/builds'><img src='https://travis-ci.org/ReactiveX/RxJava.svg?branch=1.x'></a>
21+
[![codecov.io](http://codecov.io/github/ReactiveX/RxJava/coverage.svg?branch=1.x)](http://codecov.io/github/ReactiveX/RxJava?branch=1.x)
22+
2123

2224
## Communication
2325

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
description = 'RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.'
77

88
apply plugin: 'java'
9+
apply plugin: 'jacoco'
910
apply plugin: 'nebula.rxjava-project'
1011

1112
dependencies {
@@ -46,3 +47,12 @@ if (project.hasProperty('release.useLastTag')) {
4647
test{
4748
maxHeapSize = "2g"
4849
}
50+
51+
jacocoTestReport {
52+
reports {
53+
xml.enabled = true
54+
html.enabled = true
55+
}
56+
}
57+
58+
build.dependsOn jacocoTestReport

0 commit comments

Comments
 (0)