From cf3dca6f51f21e2e9a125881822001002fcec356 Mon Sep 17 00:00:00 2001 From: nvbn Date: Sun, 19 Jul 2015 21:57:19 +0300 Subject: [PATCH] #284 Add coveralls support --- .travis.yml | 6 +++++- README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b00823a2..d2a8fc2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,8 @@ python: install: - pip install -r requirements.txt - python setup.py develop -script: py.test -v + - pip install coveralls +script: + - export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1} + - coverage run --source=thefuck,tests -m py.test -v +after_success: coveralls diff --git a/README.md b/README.md index 7639ca29..f5acbcec 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# The Fuck [![Build Status](https://travis-ci.org/nvbn/thefuck.svg)](https://travis-ci.org/nvbn/thefuck) +# The Fuck [![Build Status](https://travis-ci.org/nvbn/thefuck.svg)](https://travis-ci.org/nvbn/thefuck) [![Coverage Status](https://coveralls.io/repos/nvbn/thefuck/badge.svg?branch=master&service=github)](https://coveralls.io/github/nvbn/thefuck?branch=master) **Aliases changed in 1.34.**