From 633f6e96afa5eb5a53c2c8050304ce7daa327f0d Mon Sep 17 00:00:00 2001 From: Byron Ruth Date: Fri, 19 Jul 2013 09:12:32 -0400 Subject: [PATCH] Update .travis.yml to integrate with coveralls.io --- .coveragerc | 19 +++++++++++++++++++ .travis.yml | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..dac7851 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,19 @@ +[run] +branch = True +source = preserialize + +[report] +exclude_lines = + pragma: no cover + def __repr__ + def __str__ + def __unicode__ + if self.debug: + if settings.DEBUG + raise AssertionError + raise NotImplemented(Error)? + if 0: + if __name__ == .__main__.: + +[html] +directory = coverage diff --git a/.travis.yml b/.travis.yml index 4670beb..46494f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ env: - DJANGO=1.4.5 - DJANGO=1.5.1 install: + - pip install coveralls - pip install -q Django==$DJANGO --use-mirrors script: - - python setup.py test + - coverage run --source=preserialize setup.py test +after_success: + - coveralls