]> jfr.im git - z_archive/twitter.git/commitdiff
Add coverage to tests
authorhugovk <redacted>
Fri, 18 Apr 2014 10:35:39 +0000 (13:35 +0300)
committerhugovk <redacted>
Fri, 18 Apr 2014 10:35:39 +0000 (13:35 +0300)
.coveragerc [new file with mode: 0644]
.travis.yml

diff --git a/.coveragerc b/.coveragerc
new file mode 100644 (file)
index 0000000..7511801
--- /dev/null
@@ -0,0 +1,5 @@
+[report]
+omit =
+    */python?.?/*
+    */site-packages/nose/*
+    tests/*
index 1a263441025a007310947b7cec76051804aa1dc1..e36591b1ccec91c6b5ce26a2bde19bdf23972e64 100644 (file)
@@ -8,10 +8,13 @@ python:
 - "3.4"
 - "pypy"
 
+install:
+  - pip install coveralls
 
-script: nosetests
+script: nosetests --with-coverage --cover-package=twitter
 
 after_success:
+  - coveralls
   - pip install pep8 pyflakes
   - pep8 twitter/*.py
   - pyflakes twitter/*.py