From 36ac9a5209fd6f28fd65ffbf34e9902fc0da9926 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Thu, 24 Jul 2014 23:27:32 +0200 Subject: [PATCH] Add coverage reporting for RQ. --- .travis.yml | 6 +++++- README.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 97f8a6e..c4af057 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,10 @@ python: install: - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install -r py26-requirements.txt; fi - pip install -r requirements.txt + - pip install pytest-cov --use-mirrors + - pip install coveralls --use-mirrors #- pip install pytest # installed by Travis by default already script: - - py.test + - py.test --cov rq +after_success: + - coveralls diff --git a/README.md b/README.md index 2a22709..5a58de4 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ easily. [![Build status](https://travis-ci.org/nvie/rq.svg?branch=master)](https://secure.travis-ci.org/nvie/rq) [![Can I Use Python 3?](https://caniusepython3.com/project/rq.svg)](https://caniusepython3.com/project/rq) +[![Coverage Status](https://img.shields.io/coveralls/nvie/rq.svg)](https://coveralls.io/r/nvie/rq) ## Getting started