From e2305685dea2d99ca389f79dc40e40b8d3a1fee0 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sat, 25 Apr 2020 13:28:01 +0200 Subject: [PATCH 1/2] chore(ci): add codecov integration to Travis --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 29355579b..d4480a8f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,8 +87,11 @@ jobs: dist: bionic name: coverage python: 3.8 + install: + - pip3 install tox codecov script: - - pip3 install tox - tox -e cover + after_success: + - codecov allow_failures: - env: GITLAB_TAG=nightly From e21b2c5c6a600c60437a41f231fea2adcfd89fbd Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sat, 25 Apr 2020 14:13:20 +0200 Subject: [PATCH 2/2] docs(readme): add codecov badge for master --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 76d38abf1..7aa090499 100644 --- a/README.rst +++ b/README.rst @@ -7,6 +7,9 @@ .. image:: https://readthedocs.org/projects/python-gitlab/badge/?version=latest :target: https://python-gitlab.readthedocs.org/en/latest/?badge=latest +.. image:: https://codecov.io/github/python-gitlab/python-gitlab/coverage.svg?branch=master + :target: https://codecov.io/github/python-gitlab/python-gitlab?branch=master + .. image:: https://img.shields.io/pypi/pyversions/python-gitlab.svg :target: https://pypi.python.org/pypi/python-gitlab