From a369491ff3c9186238c626ad730461c756e794b7 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 17 Oct 2016 11:08:38 +0200 Subject: [PATCH] add codecov --- .travis.yml | 6 ++++-- README.md | 3 +++ tox.ini | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 856928d..36f55cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,5 +5,7 @@ python: - "3.3" - "3.4" - "3.5" -install: pip install tox-travis -script: tox \ No newline at end of file +install: + - pip install tox-travis +script: tox +after_success: codecov diff --git a/README.md b/README.md index bedb993..7faf531 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build Status](https://travis-ci.org/SRJ9/django-driver27.svg?branch=master)](https://travis-ci.org/SRJ9/django-driver27) +[![codecov](https://codecov.io/gh/SRJ9/django-driver27/branch/master/graph/badge.svg)](https://codecov.io/gh/SRJ9/django-driver27) + # driver27 Racing competition manager in Django where you can manage different motor competitions with its own punctuation rules, races, drivers, teams diff --git a/tox.ini b/tox.ini index df82b24..5068dc9 100644 --- a/tox.ini +++ b/tox.ini @@ -13,10 +13,14 @@ setenv = DJANGO_SETTINGS_MODULE = demo.dr27_demo.settings commands = - py.test + py.test --cov=driver27 + +passenv = CI TRAVIS TRAVIS_* deps = pytest + pytest-cov + codecov -rrequirements.txt d17: django>=1.7,<1.8 d18: django>=1.8,<1.9