From 3972878d98071fa7dfb397f531a783e43b2a3b2d Mon Sep 17 00:00:00 2001 From: J Kenneth King Date: Mon, 2 Dec 2013 09:30:26 -0500 Subject: [PATCH 1/4] Add link to try-hy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbf6c99..6ca48b6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Hy ![](https://raw.github.com/hylang/shyte/18f6925e08684b0e1f52b2cc2c803989cd62cd91/imgs/xkcd.png) -Lisp and Python should love each other. Let's make it happen. +Lisp and Python should love each other. Let's make it happen. [Try it](http://try-hy.appspot.com/). [![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) From ba3ba376654e7dd156348936faa9677919f61ed2 Mon Sep 17 00:00:00 2001 From: Abhishek L Date: Mon, 2 Dec 2013 19:54:14 +0530 Subject: [PATCH 2/4] Adding support for coverage tests at coveralls This commit adds support for coverage tests at coveralls.io, using coverage plugin from nosetests --- .coveragerc | 11 +++++++++++ .travis.yml | 2 ++ Makefile | 2 +- README.md | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..a238df8 --- /dev/null +++ b/.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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 8c6d5c8..b6e97e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 07ae6db..b8815e2 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index dbf6c99..072702a 100644 --- a/README.md +++ b/README.md @@ -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 --------------- From 887f8819d406a85d0f80f7a574812cd390e66281 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Mon, 2 Dec 2013 23:46:30 -0500 Subject: [PATCH 3/4] add coveralls token --- .coveralls.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..490aace --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: NBPVY1m10GQe6yhqbTptbWkdZyl9ailBq From 31ad46c550400c450796acf3b7d18e25dad5c87c Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Mon, 2 Dec 2013 23:47:43 -0500 Subject: [PATCH 4/4] Erm, revert that. Apparently that wasn't proper. --- .coveralls.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 490aace..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -repo_token: NBPVY1m10GQe6yhqbTptbWkdZyl9ailBq