From d59e92d3e5a614f6bfc32a07fd52dd7b805beee3 Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Sat, 6 Oct 2018 21:31:04 -0700 Subject: [PATCH 1/2] integrate with codecov --- .travis.yml | 6 +++++- README.rst | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 83f13caf..b2aa37b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,12 @@ matrix: python: 3.6 - env: TOX_ENV=check python: 3.6 -install: pip install -U tox +install: + - pip install -U tox + - pip install codecov script: travis_retry tox -e $TOX_ENV +after_success: + - codecov deploy: provider: pypi user: channelcat diff --git a/README.rst b/README.rst index 2b3f1606..1584b2a2 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ Sanic ===== -|Join the chat at https://gitter.im/sanic-python/Lobby| |Build Status| |PyPI| |PyPI version| +|Join the chat at https://gitter.im/sanic-python/Lobby| |Build Status| |Codecov| |PyPI| |PyPI version| Sanic is a Flask-like Python 3.5+ web server that's written to go fast. It's based on the work done by the amazing folks at magicstack, and was inspired by `this article `_. @@ -47,6 +47,8 @@ Documentation .. |Join the chat at https://gitter.im/sanic-python/Lobby| image:: https://badges.gitter.im/sanic-python/Lobby.svg :target: https://gitter.im/sanic-python/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge +.. |Codecov| image:: https://codecov.io/gh/yunstanford/sanic/branch/integrate-with-codecov/graph/badge.svg + :target: https://codecov.io/gh/yunstanford/sanic .. |Build Status| image:: https://travis-ci.org/huge-success/sanic.svg?branch=master :target: https://travis-ci.org/huge-success/sanic .. |Documentation| image:: https://readthedocs.org/projects/sanic/badge/?version=latest From 6deb9b49b2e32dd29df9e979e4986458f138d11e Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Sat, 6 Oct 2018 21:39:04 -0700 Subject: [PATCH 2/2] correct Codecov badge url --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 1584b2a2..44c0a484 100644 --- a/README.rst +++ b/README.rst @@ -47,8 +47,8 @@ Documentation .. |Join the chat at https://gitter.im/sanic-python/Lobby| image:: https://badges.gitter.im/sanic-python/Lobby.svg :target: https://gitter.im/sanic-python/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge -.. |Codecov| image:: https://codecov.io/gh/yunstanford/sanic/branch/integrate-with-codecov/graph/badge.svg - :target: https://codecov.io/gh/yunstanford/sanic +.. |Codecov| image:: https://codecov.io/gh/huge-success/sanic/branch/master/graph/badge.svg + :target: https://codecov.io/gh/huge-success/sanic .. |Build Status| image:: https://travis-ci.org/huge-success/sanic.svg?branch=master :target: https://travis-ci.org/huge-success/sanic .. |Documentation| image:: https://readthedocs.org/projects/sanic/badge/?version=latest