From b7c3494f4a72fbde0cad4693b5c792d514828b75 Mon Sep 17 00:00:00 2001 From: renzon Date: Sat, 12 May 2018 09:36:22 -0300 Subject: [PATCH] =?UTF-8?q?Acresecentada=20cobertura=20de=20c=C3=B3digo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #23 --- .travis.yml | 6 ++++-- README.md | 1 + requirements-dev.txt | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1d943137..0944b0b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,9 @@ language: python python: - 3.6 install: - - pip install -q -r requirements-dev.txt + - pip install -q -r requirements-dev.txt codecov script: - flake8 - - pytest libpythonpro \ No newline at end of file + - pytest libpythonpro --cov=libpythonpro +after_success: + - codecov \ No newline at end of file diff --git a/README.md b/README.md index 2af950cc..cf235dd6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Link para o curso [Python Pro](https://www.python.pro.br/) [![Build Status](https://travis-ci.org/pythonprobr/libpythonpro.svg?branch=master)](https://travis-ci.org/pythonprobr/libpythonpro) [![Updates](https://pyup.io/repos/github/pythonprobr/libpythonpro/shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) [![Python 3](https://pyup.io/repos/github/pythonprobr/libpythonpro/python-3-shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/) +[![codecov](https://codecov.io/gh/pythonprobr/libpythonpro/branch/master/graph/badge.svg)](https://codecov.io/gh/pythonprobr/libpythonpro) Suportada versão 3 de Python diff --git a/requirements-dev.txt b/requirements-dev.txt index d7d25f1e..d08fc441 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,4 +10,10 @@ six==1.11.0 attrs==18.1.0 pluggy==0.6.0 pytest==3.5.1 + + +#Converage +coverage==4.5.1 +pytest-cov==2.5.1 + -r requirements.txt \ No newline at end of file