Skip to content

Commit 8df24c1

Browse files
authored
CI codecov reports (#232)
* Add jacoco plugin to generate test reports * Update travis yml to run test reports and upload to codecov.io * fix indentation * Add codecov badge to readme
1 parent 46e7966 commit 8df24c1

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ jdk:
66
- openjdk10
77
- openjdk11
88
script:
9-
- ./gradlew test
9+
- ./gradlew jacocoTestReport test
10+
11+
after_success:
12+
# report coverage
13+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Pusher Channels Java Client
22

33
[![Build Status](https://travis-ci.org/pusher/pusher-websocket-java.svg?branch=master)](https://travis-ci.org/pusher/pusher-websocket-java)
4+
[![codecov](https://codecov.io/gh/pusher/pusher-websocket-java/branch/master/graph/badge.svg)](https://codecov.io/gh/pusher/pusher-websocket-java)
45

56
Pusher Channels client library for Java targeting **Android** and general Java.
67

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apply plugin: 'maven'
1919
apply plugin: 'eclipse'
2020
apply plugin: 'org.ajoberstar.github-pages'
2121
apply plugin: 'signing'
22+
apply plugin: 'jacoco'
2223

2324
group = "com.pusher"
2425
version = "2.0.2"
@@ -186,3 +187,13 @@ task createPublishTarget {
186187
wrapper {
187188
gradleVersion = '5.5.1'
188189
}
190+
191+
jacoco {
192+
toolVersion = "0.8.4"
193+
}
194+
195+
jacocoTestReport {
196+
reports.xml.enabled = true
197+
reports.html.enabled = false
198+
reports.csv.enabled = false
199+
}

0 commit comments

Comments
 (0)