Repository: libcloud Updated Branches: refs/heads/trunk 099b2289d -> eae60769f
Enable coverage reports on codecov. Closes #1109 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/041cdae3 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/041cdae3 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/041cdae3 Branch: refs/heads/trunk Commit: 041cdae30df68302e7bb6027278ed312ac3f38bf Parents: 099b228 Author: Tomaz Muraus <[email protected]> Authored: Sun Sep 10 22:36:05 2017 +0200 Committer: Tomaz Muraus <[email protected]> Committed: Mon Sep 11 09:48:22 2017 +0200 ---------------------------------------------------------------------- .codecov.yaml | 18 ++++++++++++++++++ requirements-tests.txt | 3 ++- tox.ini | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/041cdae3/.codecov.yaml ---------------------------------------------------------------------- diff --git a/.codecov.yaml b/.codecov.yaml new file mode 100644 index 0000000..5725cf1 --- /dev/null +++ b/.codecov.yaml @@ -0,0 +1,18 @@ +codecov: + #notify: + #require_ci_to_pass: yes + +coverage: + precision: 2 # decimal places to display: 0 <= value <= 4 + round: nearest + range: 50...90 # custom range of coverage colors from red -> yellow -> green + + status: + project: + default: + threshold: 2% + patch: yes + changes: no + +# comments are useless, considering wrong coverage reports +comment: no http://git-wip-us.apache.org/repos/asf/libcloud/blob/041cdae3/requirements-tests.txt ---------------------------------------------------------------------- diff --git a/requirements-tests.txt b/requirements-tests.txt index a92d325..4fdca78 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -3,8 +3,9 @@ flake8>=2.5.1,<2.6 astroid>=1.4.5,<1.5 pylint>=1.5.5,<1.6 mock>=1.0.1,<1.1 +codecov coveralls coverage<4.0 requests requests_mock -pytest \ No newline at end of file +pytest http://git-wip-us.apache.org/repos/asf/libcloud/blob/041cdae3/tox.ini ---------------------------------------------------------------------- diff --git a/tox.ini b/tox.ini index 1c3d27f..dbeeeb6 100644 --- a/tox.ini +++ b/tox.ini @@ -93,6 +93,7 @@ deps = -r{toxinidir}/integration/requirements.txt commands = python -m integration [testenv:coverage] +passenv = TOXENV CI TRAVIS TRAVIS_* deps = -r{toxinidir}/requirements-tests.txt set-env = @@ -100,3 +101,4 @@ set-env = commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py coverage run --source=libcloud setup.py test coveralls + codecov
