From ea49400ef08378e6141c0146c9672e626d8238ac Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Thu, 24 Jan 2019 16:04:18 -0500 Subject: [PATCH 1/3] Switch to codecov --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 666c085efd7..1e5dc67999e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -106,9 +106,8 @@ script: - set +e after_success: - - pip install pyopenssl==17.4.0 - - coveralls --rcfile .coveragerc_failcheck - - coverage report -i --rcfile .coveragerc + - pip install codecov + - codecov - coverage report -i --rcfile .coveragerc_failcheck --fail-under=100 notifications: From 59f6eb57edcdc5f49e773df0e533a6139d7842d9 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Thu, 24 Jan 2019 16:55:33 -0500 Subject: [PATCH 2/3] Make default coverage file ignore "needs cover" --- .coveragerc | 4 ++-- .coveragerc_failcheck => .coveragerc_todo | 4 ++-- .travis.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename .coveragerc_failcheck => .coveragerc_todo (95%) diff --git a/.coveragerc b/.coveragerc index 9c3778ec78c..c8a52c289bd 100644 --- a/.coveragerc +++ b/.coveragerc @@ -7,8 +7,9 @@ ignore_errors = True precision = 0 show_missing = True skip_covered = True -exclude_lines = +exclude_lines = pragma: no cover + pragma: needs cover pragma: can't cover def __repr__ if self.debug: @@ -25,7 +26,6 @@ omit = *__init__* *settings* temba/perf_tests.py - temba/wsgi.py temba/flows/management/commands/run_audit.py temba/contacts/management/commands/audit_es_group.py temba/msgs/management/commands/msg_console.py diff --git a/.coveragerc_failcheck b/.coveragerc_todo similarity index 95% rename from .coveragerc_failcheck rename to .coveragerc_todo index c8a52c289bd..9c3778ec78c 100644 --- a/.coveragerc_failcheck +++ b/.coveragerc_todo @@ -7,9 +7,8 @@ ignore_errors = True precision = 0 show_missing = True skip_covered = True -exclude_lines = +exclude_lines = pragma: no cover - pragma: needs cover pragma: can't cover def __repr__ if self.debug: @@ -26,6 +25,7 @@ omit = *__init__* *settings* temba/perf_tests.py + temba/wsgi.py temba/flows/management/commands/run_audit.py temba/contacts/management/commands/audit_es_group.py temba/msgs/management/commands/msg_console.py diff --git a/.travis.yml b/.travis.yml index 1e5dc67999e..526ec2f2584 100644 --- a/.travis.yml +++ b/.travis.yml @@ -108,7 +108,7 @@ script: after_success: - pip install codecov - codecov - - coverage report -i --rcfile .coveragerc_failcheck --fail-under=100 + - coverage report -i --rcfile .coveragerc_todo notifications: slack: From 3ffa121a49cf8804c3f8fcc346495783ae35e497 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Fri, 25 Jan 2019 09:10:28 -0500 Subject: [PATCH 3/3] Update README badges --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 14b361844d3..6e4e6aca18a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -[![Coverage Status](https://coveralls.io/repos/github/rapidpro/rapidpro/badge.svg?branch=master)](https://coveralls.io/github/rapidpro/rapidpro?branch=master) - -# RapidPro +# RapidPro [![Build Status](https://travis-ci.org/rapidpro/rapidpro.svg?branch=master)](https://travis-ci.org/rapidpro/rapidpro) [![codecov](https://codecov.io/gh/rapidpro/rapidpro/branch/master/graph/badge.svg)](https://codecov.io/gh/rapidpro/rapidpro) RapidPro is a hosted service for visually building interactive messaging applications. To learn more, please visit the project site at http://rapidpro.github.io/rapidpro.