From ea01d4af362fb00f6393f13003754a5f514c9446 Mon Sep 17 00:00:00 2001 From: Felix Divo Date: Sat, 28 Jul 2018 15:28:41 +0200 Subject: [PATCH 1/4] add coverage report badge to README.rst --- README.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f421876d0..50feadf86 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ python-can ========== -|release| |docs| |build_travis| |build_appveyor| +|release| |docs| |build_travis| |build_appveyor| |coverage| .. |release| image:: https://img.shields.io/pypi/v/python-can.svg :target: https://pypi.python.org/pypi/python-can/ @@ -19,6 +19,10 @@ python-can :target: https://ci.appveyor.com/project/hardbyte/python-can/history :alt: AppVeyor CI Server for develop branch +.. |coverage| image:: https://codecov.io/gh/hardbyte/python-can/branch/master/graph/badge.svg + :target: https://codecov.io/gh/hardbyte/python-can + :alt: Coverage reports on Codecov.io + The **C**\ ontroller **A**\ rea **N**\ etwork is a bus standard designed to allow microcontrollers and devices to communicate with each other. It From 0abc607e3dd295927fb41a0f26c30542c27c01d3 Mon Sep 17 00:00:00 2001 From: Felix Divo Date: Sat, 28 Jul 2018 15:48:34 +0200 Subject: [PATCH 2/4] added .codecov.yml --- .codecov.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..a69fe8108 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,19 @@ +codecov: + archive: + uploads: no + +coverage: + precision: 2 + round: down + range: 50...100 + +comment: + layout: "header, diff, changes" + +coverage: + status: + # pull-requests only + patch: + default: + # coverage may fall by <1.0% and still be considered "passing" + threshold: 1.0% From b6427adcfb7fe1b100f0ffad6840b2968982feb1 Mon Sep 17 00:00:00 2001 From: Felix Divo Date: Mon, 30 Jul 2018 12:19:41 +0200 Subject: [PATCH 3/4] fix syntax error --- .codecov.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index a69fe8108..d533fd085 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -6,14 +6,12 @@ coverage: precision: 2 round: down range: 50...100 - -comment: - layout: "header, diff, changes" - -coverage: status: # pull-requests only patch: default: # coverage may fall by <1.0% and still be considered "passing" threshold: 1.0% + +comment: + layout: "header, diff, changes" From 78878a97833cb2dd9acd7b769fa296873ef74fb5 Mon Sep 17 00:00:00 2001 From: Felix Divo Date: Mon, 30 Jul 2018 12:22:31 +0200 Subject: [PATCH 4/4] adress review; the coverage badge now referrs to the develop branch --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 50feadf86..d40940177 100644 --- a/README.rst +++ b/README.rst @@ -19,9 +19,9 @@ python-can :target: https://ci.appveyor.com/project/hardbyte/python-can/history :alt: AppVeyor CI Server for develop branch -.. |coverage| image:: https://codecov.io/gh/hardbyte/python-can/branch/master/graph/badge.svg - :target: https://codecov.io/gh/hardbyte/python-can - :alt: Coverage reports on Codecov.io +.. |coverage| image:: https://codecov.io/gh/hardbyte/python-can/branch/develop/graph/badge.svg + :target: https://codecov.io/gh/hardbyte/python-can/branch/develop + :alt: Test coverage reports on Codecov.io The **C**\ ontroller **A**\ rea **N**\ etwork is a bus standard designed