From dd96e830a79a9a4b6369a0f07242456f42cce340 Mon Sep 17 00:00:00 2001 From: Umang Arora Date: Sun, 1 Jun 2014 22:07:34 +0530 Subject: [PATCH] Added Coveralls #4507 --- .coveragerc | 5 +++++ .travis.yml | 8 +++++++- README.md | 4 ---- README.rst | 10 ++++++++++ setup.cfg | 2 +- setup.py | 9 +++++---- 6 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 .coveragerc delete mode 100644 README.md create mode 100644 README.rst diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..56fa064 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +[run] +source = trytond.modules.attachment_s3 + +[report] +omit = */tests/*, */fabfile.py diff --git a/.travis.yml b/.travis.yml index a3e1c99..bfb915e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,12 @@ before_install: install: - pip install flake8 - python setup.py install + - pip install coveralls script: - - python setup.py test + - coverage run setup.py test - flake8 . +after_success: + coveralls +notifications: + email: + - ci-notify@openlabs.co.in diff --git a/README.md b/README.md deleted file mode 100644 index 0944b2b..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -trytond-attachment-s3 -===================== - -Amazon S3 backend for Tryton Attachments \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..0bf34b2 --- /dev/null +++ b/README.rst @@ -0,0 +1,10 @@ +trytond-attachment-s3 +===================== + +Amazon S3 backend for Tryton Attachments + +.. image:: https://travis-ci.org/openlabs/trytond-attachment-s3.png?branch=develop + :target: https://travis-ci.org/openlabs/trytond-attachment-s3 + +.. image:: https://coveralls.io/repos/openlabs/trytond-attachment-s3/badge.png + :target: https://coveralls.io/r/openlabs/trytond-attachment-s3 diff --git a/setup.cfg b/setup.cfg index 92954bf..9e685b9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [flake8] -ignore = E126,E128,C901 +ignore = E126,E128,C901,E131 max-complexity=10 max-line-length=80 diff --git a/setup.py b/setup.py index e58b728..233fe84 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #! /usr/bin/env python -#This file is part of Tryton. The COPYRIGHT file at the top level of -#this repository contains the full copyright notices and license terms. +# This file is part of Tryton. The COPYRIGHT file at the top level of +# this repository contains the full copyright notices and license terms. import re import os from setuptools import setup @@ -50,8 +50,9 @@ def read(fname): 'trytond.modules.attachment_s3.tests', ], package_data={ - 'trytond.modules.attachment_s3': info.get('xml', []) + - ['tryton.cfg', 'locale/*.po', '*.odt', 'icons/*.svg'], + 'trytond.modules.attachment_s3': info.get('xml', []) + [ + 'tryton.cfg', 'locale/*.po', '*.odt', 'icons/*.svg' + ], }, classifiers=[ 'Development Status :: 5 - Production/Stable',