From 13e3a809554706905418a48b72e09e2eba81af2d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 19 May 2014 23:42:30 +0200 Subject: Added coverage report --- .coveragerc | 10 ++++++++++ .gitignore | 2 ++ .travis.yml | 5 ++++- README.md | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..410ffc52 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,10 @@ +[run] +source = git + +; to make nosetests happy +[report] +omit = + */yaml* + */tests/* + */python?.?/* + */site-packages/nose/* \ No newline at end of file diff --git a/.gitignore b/.gitignore index eec80860..df821cfa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ *.swp *~ /lib/GitPython.egg-info +cover/ +.coverage /build /dist /doc/_build diff --git a/.travis.yml b/.travis.yml index 2a56becc..0a2906dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,8 @@ python: install: - git submodule update --init --recursive - git fetch --tags + - pip install coveralls script: - - nosetests + - nosetests --with-coverage +# after_success: as long as we are not running smoothly ... give it the cover treatment every time + - coveralls diff --git a/README.md b/README.md index d978917b..818e3751 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ A distribution package can be obtained for manual installation at: ### DEVELOPMENT STATUS [![Build Status](https://travis-ci.org/gitpython-developers/GitPython.svg?branch=0.3)](https://travis-ci.org/gitpython-developers/GitPython) +[![Coverage Status](https://coveralls.io/repos/gitpython-developers/GitPython/badge.png)](https://coveralls.io/r/gitpython-developers/GitPython) The project was idle for 2 years, the last release was made about 3 years ago. Reason for this might have been the project's dependency on me as sole active maintainer, which is an issue in itself. -- cgit v1.2.3