提交 0be4d292 编写于 作者: R Roey Prat 提交者: Andy McCurdy

Code coverage in travis, and codecov.io badge. (#1180)

上级 da2ffc7e
......@@ -18,7 +18,10 @@ install:
- pip install -e .
- "if [[ $TEST_PYCODESTYLE == '1' ]]; then pip install pycodestyle; fi"
- "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi"
script: "if [[ $TEST_PYCODESTYLE == '1' ]]; then pycodestyle --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,redis_install .; else python setup.py test; fi"
- "if [[ $TEST_PYCODESTYLE != '1' ]]; then pip install codecov coverage; fi"
script: "if [[ $TEST_PYCODESTYLE == '1' ]]; then pycodestyle --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,redis_install .; else coverage run setup.py test; fi"
after_success:
- "if [[ $TEST_PYCODESTYLE != '1' ]]; then codecov; fi"
matrix:
include:
- python: 2.7
......
......@@ -9,6 +9,8 @@ The Python interface to the Redis key-value store.
:target: https://redis-py.readthedocs.io/en/latest/
.. image:: https://badge.fury.io/py/redis.svg
:target: https://pypi.org/project/redis/
.. image:: https://codecov.io/gh/andymccurdy/redis-py/branch/master/graph/badge.svg
:target: https://codecov.io/gh/andymccurdy/redis-py
Installation
------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册