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