diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..9bae97f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,14 @@ +[run] +branch = True +source = firstdata + +[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 47f429a..afc21dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,6 @@ env: - secure: "lVbC9Y4Mo60z9cLLvwLut5b6dLkGqz+BBOaKvFRB6XMO4C0wbGVvF1478rQm\ntoZYFqTm1ydLVfe+8FGH70w0Osx5g9i/62sH1nDGmnrTl4yiH+wkz1ZngB4d\nd2Kd/n6Ve9g+Y2qCfNHJSla+CkuPhPoDwGENywZwWKhapFMZhGc=" script: - pip install tornado - - python -m firstdata.tests \ No newline at end of file + - coverage run -m firstdata.tests +after_success: codecov +install: pip install codecov diff --git a/README.md b/README.md index 4b3d7aa..bb18091 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://secure.travis-ci.org/stevepeak/firstdata.png)](http://travis-ci.org/stevepeak/firstdata) +[![codecov.io](https://codecov.io/github/stevepeak/firstdata/coverage.svg?branch=master)](https://codecov.io/github/stevepeak/firstdata?branch=master) ## Unofficial First Data's Global Gateway e4 Python Handler