diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..34ed748 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,14 @@ +[run] +branch = True +source = hello + +[report] +ignore_errors = True +exclude_lines = + pragma: no cover + def __repr__ + if self\.debug + raise AssertionError + raise NotImplementedError + if 0: + if __name__ == .__main__.: diff --git a/.travis.yml b/.travis.yml index cc23c55..fb677d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: - 3.3 - 3.4 install: + - pip install codecov - pip install stuff script: - - python -m tests.py + - coverage run -m tests.py +after_success: codecov diff --git a/README.md b/README.md index 260f89b..6f8880d 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ Hello world ======= [![Build Status](https://secure.travis-ci.org/codecov/codecov-python.svg?branch=master)](http://travis-ci.org/codecov/codecov-python) +[![codecov.io](https://codecov.io/github/codecov-test/python-1/coverage.svg?branch=master)](https://codecov.io/github/codecov-test/python-1?branch=master) diff --git a/README.rst b/README.rst index 69c384e..bb93770 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -=========== +=========== .. image:: https://codecov.io/github/codecov-test/python-1/coverage.svg?branch=master :target: https://codecov.io/github/codecov-test/python-1?branch=master Hello world =========== diff --git a/README.textile b/README.textile index 9496d78..448a69d 100644 --- a/README.textile +++ b/README.textile @@ -1,2 +1,2 @@ -h2. Hello world +h2. Hello world !https://codecov.io/github/codecov-test/python-1/coverage.svg?branch=master(Coverage via codecov.io)!:https://codecov.io/github/codecov-test/python-1?branch=master diff --git a/circle.yml b/circle.yml index 16aa3ee..471c4b1 100644 --- a/circle.yml +++ b/circle.yml @@ -4,8 +4,11 @@ machine: dependencies: override: + - pip install codecov - pip install stuff test: override: - - python -m tests + - coverage run -m tests + post: + - codecov