From 9a4782a4f7555a88e3d314f443679d41108a8924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Tue, 20 Dec 2016 13:50:02 +0100 Subject: [PATCH] code climate + coverage --- .codeclimate.yml | 21 +++++++++++++++++++++ .coveragerc | 4 ++++ .travis.yml | 7 ++++++- README.md | 2 ++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .codeclimate.yml create mode 100644 .coveragerc diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..4096f28 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,21 @@ +engines: + duplication: + enabled: true + config: + languages: + python: + + fixme: + enabled: true + markdownlint: + enabled: true + pep8: + enabled: true + radon: + enabled: true +exclude_paths: +- examples/** +ratings: + paths: + - coolamqp/** + - tests/** diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..ed2e4d8 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[run] +branch=1 +include=coolamqp/* +omit=tests/* diff --git a/.travis.yml b/.travis.yml index f9660d7..6a9fd08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,9 @@ python: - "pypy" cache: pip script: - - nosetests + - nosetests --with-coverage +install: + - pip install coverage + - pip install codeclimate-test-reporter +after_success: + - CODECLIMATE_REPO_TOKEN=e8e05973a6c49139de5f98013cd285f9238b78d20f053f37f6e7deeab2c2c52f codeclimate-test-reporter diff --git a/README.md b/README.md index 1c347df..c6fc9fa 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ CoolAMQP ======== [](https://badge.fury.io/py/CoolAMQP) [](https://travis-ci.org/smok-serwis/coolamqp) +[](https://codeclimate.com/github/smok-serwis/coolamqp) +[](https://codeclimate.com/github/smok-serwis/coolamqp/coverage) []() []() []() -- GitLab