add coveralls
This commit is contained in:
parent
9a98c2df35
commit
ae4047b260
3 changed files with 14 additions and 3 deletions
4
.coveragerc
Normal file
4
.coveragerc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[report]
|
||||
omit =
|
||||
*/python?.?/*
|
||||
*/site-packages/nose/*
|
||||
11
.travis.yml
11
.travis.yml
|
|
@ -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
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue