Skip to content

Commit

Permalink
Adding support for coverage tests at coveralls
Browse files Browse the repository at this point in the history
This commit adds support for coverage tests at coveralls.io,
using coverage plugin from nosetests
  • Loading branch information
theanalyst committed Dec 2, 2013
1 parent 8865bb8 commit ba3ba37
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
@@ -0,0 +1,11 @@
[run]
omit =
*/python?.?/*
*/lib-python/?.?/*.py
*/lib_pypy/_*.py
*/site-packages/nose/*
*/pypy/*

exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -8,12 +8,14 @@ python:
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install coveralls
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install argparse importlib unittest2 astor; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install astor; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install astor; fi
- python setup.py -q install
# # command to run tests
script: make travis
after_success: coveralls
notifications:
email:
- paultag@gmail.com
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -53,7 +53,7 @@ diff:
r: d tox diff

travis:
nosetests -s
nosetests -s --with-coverage --cover-package hy
ifeq (PyPy,$(findstring PyPy,$(shell python -V 2>&1 | tail -1)))
@echo "skipping flake8 on pypy"
else
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@ Lisp and Python should love each other. Let's make it happen.
[![Build Status](https://travis-ci.org/hylang/hy.png?branch=master)](https://travis-ci.org/hylang/hy)
[![Downloads](https://pypip.in/d/hy/badge.png)](https://crate.io/packages/hy)
[![version](https://pypip.in/v/hy/badge.png)](https://crate.io/packages/hy)

[![Coverage Status](https://coveralls.io/repos/hylang/hy/badge.png)](https://coveralls.io/r/hylang/hy)

Hylarious Hacks
---------------
Expand Down

0 comments on commit ba3ba37

Please sign in to comment.