summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamilton Kibbe <ham@hamiltonkib.be>2014-09-30 17:49:04 -0400
committerHamilton Kibbe <ham@hamiltonkib.be>2014-09-30 17:49:04 -0400
commitae4047b2600c5ff6be3a1d0ab8e8573f49107c7f (patch)
tree96b59e87fcb00458e5d8d53d946f965f2809c1d3
parent9a98c2df3552211bce4639f19f1b85499b3e714a (diff)
downloadgerbonara-ae4047b2600c5ff6be3a1d0ab8e8573f49107c7f.tar.gz
gerbonara-ae4047b2600c5ff6be3a1d0ab8e8573f49107c7f.tar.bz2
gerbonara-ae4047b2600c5ff6be3a1d0ab8e8573f49107c7f.zip
add coveralls
-rw-r--r--.coveragerc4
-rw-r--r--.travis.yml11
-rw-r--r--Makefile2
3 files changed, 14 insertions, 3 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..8b140ff
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,4 @@
+[report]
+omit =
+ */python?.?/*
+ */site-packages/nose/* \ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
index a832b12..c652e8d 100644
--- a/.travis.yml
+++ b/.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" \ No newline at end of file
+script:
+ - make test-coverage
+
+# Coveralls
+after-success:
+ - coveralls
diff --git a/Makefile b/Makefile
index 162094c..cec5b6a 100644
--- a/Makefile
+++ b/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)