summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)