Adding support for coverage tests at coveralls
This commit adds support for coverage tests at coveralls.io, using coverage plugin from nosetests
This commit is contained in:
parent
8865bb8a8f
commit
ba3ba37665
11
.coveragerc
Normal file
11
.coveragerc
Normal file
@ -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
|
@ -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
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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
|
||||
---------------
|
||||
|
Loading…
Reference in New Issue
Block a user