From 57bf8df379e502d10d33960a3fe3ccb54e0cafdf Mon Sep 17 00:00:00 2001 From: Louis Bergelson Date: Tue, 29 Nov 2016 17:16:01 -0500 Subject: [PATCH 1/3] switching from coverals to codecov codecov seems to be more accurate since it incorporates a notion of "partially covered lines" it also makes reviewing pr's easier since coverage can be shown inline during reviews with a browser plugin --- .travis.yml | 2 +- build.gradle | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e9259942..cc48c9499 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,9 @@ jdk: - oraclejdk8 script: ./gradlew jacocoTestReport testSRA; after_success: + - bash <(curl -s https://codecov.io/bash) - echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'"; echo "JAVA_HOME='$JAVA_HOME'"; - ./gradlew coveralls; if [ "$TRAVIS_BRANCH" == "master" ]; then ./gradlew uploadArchives; fi diff --git a/build.gradle b/build.gradle index 9e8f35154..25a9cc58c 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,6 @@ plugins { id 'jacoco' id 'com.palantir.git-version' version '0.5.1' id 'com.github.johnrengelman.shadow' version '1.2.3' - id "com.github.kt3k.coveralls" version "2.6.3" } repositories { @@ -25,7 +24,7 @@ jacocoTestReport { additionalSourceDirs = files(sourceSets.main.allJava.srcDirs) reports { - xml.enabled = true // coveralls plugin depends on xml format report + xml.enabled = true // codecov depends on xml format report html.enabled = true } } From bddbf6a66355e4af5d52dba6fb65e3855f079d9f Mon Sep 17 00:00:00 2001 From: Louis Bergelson Date: Wed, 4 Jan 2017 14:42:34 -0500 Subject: [PATCH 2/3] seeing if running jacoco test report AFTER sra tests will include them --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cc48c9499..9c046e353 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ cache: - $HOME/.m2 jdk: - oraclejdk8 -script: ./gradlew jacocoTestReport testSRA; +script: ./gradlew testSRA jacocoTestReport; after_success: - bash <(curl -s https://codecov.io/bash) - echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'"; From b7d8ba32118d9a5ec34587959a95af876d70e7fe Mon Sep 17 00:00:00 2001 From: Louis Bergelson Date: Wed, 4 Jan 2017 18:25:36 -0500 Subject: [PATCH 3/3] updating readme and adding yml --- README.md | 2 +- codecov.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/README.md b/README.md index 0e468d334..1981fd182 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Coverage Status](https://coveralls.io/repos/github/samtools/htsjdk/badge.svg?branch=master)](https://coveralls.io/github/samtools/htsjdk?branch=master) +[![Coverage Status](https://codecov.io/gh/samtools/htsjdk/branch/master/graph/badge.svg)](https://codecov.io/gh/samtools/htsjdk) [![Build Status](https://travis-ci.org/samtools/htsjdk.svg?branch=master)](https://travis-ci.org/samtools/htsjdk) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.samtools/htsjdk/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.github.samtools%22%20AND%20a%3A%22htsjdk%22) [![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samtools/htsjdk) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..98fb05f4c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,29 @@ +codecov: + branch: master + +coverage: + precision: 3 + round: nearest + range: "50...100" + + status: + project: + default: + target: auto + threshold: null + branches: null + + patch: + default: + target: auto + branches: null + + changes: + default: + branches: null + + +comment: + layout: "header, diff, changes, sunburst, uncovered, tree" + branches: null + behavior: default