diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..d533fd085 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,17 @@ +codecov: + archive: + uploads: no + +coverage: + precision: 2 + round: down + range: 50...100 + 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" diff --git a/README.rst b/README.rst index 226b74ca1..cf6b45f83 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/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 to allow microcontrollers and devices to communicate with each other. It