From 62c1e2f45bdaad9423300589c74ac3d6b86745be Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 8 Jul 2013 21:56:44 +0200 Subject: [PATCH] Add coveralls --- .travis.yml | 6 +++++- README.md | 1 + requirements.txt | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 51ad853..2379262 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: # command to install dependencies install: #- pip install . --use-mirrors + - pip install pytest-cov python-coveralls - pip install -r requirements.txt --use-mirrors - wget https://bitbucket.org/pypy/pypy/get/default.tar.bz2 -O `pwd`/../pypy.tar.bz2 - tar -xf `pwd`/../pypy.tar.bz2 -C `pwd`/../ @@ -17,4 +18,7 @@ script: - export PYTHONPATH=$PYTONPATH:`python -c "import glob; import os; print os.path.abspath(glob.glob('../pypy-pypy*')[0])"` - export PATH=$PATH:`pwd`/lua/ - python translate.py - - py.test + - py.test --cov luna + +after_success: + - coveralls diff --git a/README.md b/README.md index 06517d1..02340eb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Luna ===== [![Build Status](https://travis-ci.org/fhahn/luna.png?branch=master)](https://travis-ci.org/fhahn/luna) +[![Coverage Status](https://coveralls.io/repos/fhahn/luna/badge.png)](https://coveralls.io/r/fhahn/luna) Luna is a bytecode register interpreter for Lua. At the moment it uses Luajit to compile Lua files to bytecode diff --git a/requirements.txt b/requirements.txt index fb2fd6c..949279e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ # testing requirement pytest +