From bcc2b7bd9c9853b142955da9de9c8e493e5542da Mon Sep 17 00:00:00 2001 From: Josh Friend Date: Sun, 2 Nov 2014 22:29:50 -0500 Subject: [PATCH] run coverage on cookies and report to coveralls.io --- .travis.yml | 4 +++- Makefile | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a1ccbd..74baa44 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ python: - 3.3 - 3.4 install: - - pip install cookiecutter + - pip install cookiecutter coveralls script: - make +after_success: + - coveralls diff --git a/Makefile b/Makefile index 4765409..fba34f7 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ all: test .PHONY: test test: $(COOKIE) cd $(COOKIE); pip install -r requirements/dev.txt - cd $(COOKIE); python manage.py test + cd $(COOKIE); coverage run --source $(COOKIE) manage.py test + cd $(COOKIE); coverage report -m $(COOKIE): Makefile cookiecutter.json $(COOKIE_CRUMBS) cookiecutter . --no-input