Skip to content

Commit 535fb75

Browse files
authored
Use codecov.io for code coverage (#4046)
1 parent 0a5f884 commit 535fb75

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-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: 14 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,16 @@ if (project.hasProperty('release.useLastTag')) {
4647
test{
4748
maxHeapSize = "2g"
4849
}
50+
51+
jacoco {
52+
toolVersion = '0.7.7.201606060606' // See http://www.eclemma.org/jacoco/.
53+
}
54+
55+
jacocoTestReport {
56+
reports {
57+
xml.enabled = true
58+
html.enabled = true
59+
}
60+
}
61+
62+
build.dependsOn jacocoTestReport

0 commit comments

Comments
 (0)