add coveralls

This commit is contained in:
Hamilton Kibbe 2014-09-30 17:49:04 -04:00
parent 9a98c2df35
commit ae4047b260
3 changed files with 14 additions and 3 deletions

4
.coveragerc Normal file
View file

@ -0,0 +1,4 @@
[report]
omit =
*/python?.?/*
*/site-packages/nose/*

View file

@ -3,7 +3,14 @@ python:
- "2.7"
# command to install dependencies
install: "pip install -r requirements.txt"
install:
- "pip install -r requirements.txt"
- "pip install coveralls"
# command to run tests
script: "make test"
script:
- make test-coverage
# Coveralls
after-success:
- coveralls

View file

@ -14,7 +14,7 @@ test:
test-coverage:
rm -rf coverage .coverage
$(NOSETESTS) -s -v --with-coverage gerber
$(NOSETESTS) -s -v --with-coverage --cover-package=gerber
doc-html:
(cd $(DOC_ROOT); make html)