Adding coveralls integration
Run coverage with all tests and send results to coveralls.io.
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..83429b0
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,7 @@
+[report]
+omit = */samples/*
+exclude_lines =
+ # Re-enable the standard pragma
+ pragma: NO COVER
+ # Ignore debug-only repr
+ def __repr__
diff --git a/.gitignore b/.gitignore
index ddb969d..cf2c4a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,8 @@
# Test files
.tox/
+
+# Coverage files
+.coverage
+coverage.xml
+nosetests.xml
diff --git a/.travis.yml b/.travis.yml
index 446dc6f..43edc6a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,10 @@
- TOX_ENV=py34
install:
- pip install tox
+- pip install coveralls
script:
- tox -e $TOX_ENV
+after_success:
+ coveralls
notifications:
email: false
diff --git a/tox.ini b/tox.ini
index dd3380d..9105025 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,5 +9,6 @@
django
webtest
nose
+ coverage>=3.6,<3.99
unittest2
-commands = nosetests
+commands = nosetests --with-coverage --cover-package=googleapiclient --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=85