Skip to content

Commit 6021cac

Browse files
committed
Switch to codecov for coverage reports
This required some changes to work around the fact that we run our tests from the tests/ directory in order to ensure we import from the installed .whl file. This means that our .coveragerc file is not being sourced. To fix that, I copy the .coverage data file to the top level diretory, delete the coverage.xml file (which includes vendored files we want to ignore), and let codecov regenerate the coverage.xml file. I had to make a small change to the .coveragerc file to ignore the botocore vendored packages.
1 parent 4bfe70b commit 6021cac

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.coveragerc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[run]
22
branch = True
3-
include =
4-
botocore/*
53
omit =
64
botocore/vendored/*
75

86
[report]
97
exclude_lines =
108
raise NotImplementedError.*
9+
include =
10+
botocore/*

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ before_install:
1111
echo "No pull requests can be sent to the master branch" 1>&2;
1212
exit 1;
1313
fi
14+
- pip install codecov
1415
install:
1516
- python scripts/ci/install
1617
script: python scripts/ci/run-tests
1718
after_success:
18-
- pip install python-coveralls && cd tests && coveralls
19+
- rm tests/coverage.xml && mv tests/.coverage ./ && codecov

README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ botocore
44
.. image:: https://secure.travis-ci.org/boto/botocore.png?branch=develop
55
:target: http://travis-ci.org/boto/botocore
66

7+
.. image:: https://codecov.io/github/boto/botocore/coverage.svg?branch=develop
8+
:target: https://codecov.io/github/boto/botocore?branch=develop
9+
710

811
A low-level interface to a growing number of Amazon Web Services. The
912
botocore package is the foundation for the

0 commit comments

Comments
 (0)