Commit 6eb5ec35 authored by Tim Stumbaugh's avatar Tim Stumbaugh

Update CI pipeline

- Return to using the Python images, since Docker image cycle seems
  slow
- Add coverage report to py.test runs
- Add badge for coverage and update badge for pipeline
parent 8cea156f
Pipeline #56690891 passed with stage
in 3 minutes and 59 seconds
before_script:
- pip3 install tox
test:tox:
image: themattrix/tox
test:3.5:
coverage: /\d+\%\s*$/
script:
- tox
- tox -epy35-{hiredis,nohiredis}
image: python:3.5
test:3.6:
coverage: /\d+\%\s*$/
script:
- tox -epy36-{hiredis,nohiredis}
image: python:3.6
test:3.7:
coverage: /\d+\%\s*$/
script:
- tox -epy37-{hiredis,nohiredis}
image: python:3.7
# rediparse
[![build status](https://gitlab.com/tjstum/rediparse/badges/master/build.svg)](https://gitlab.com/tjstum/rediparse/commits/master)
[![pipeline status](https://gitlab.com/tjstum/rediparse/badges/master/pipeline.svg)](https://gitlab.com/tjstum/rediparse/commits/master)
[![coverage report](https://gitlab.com/tjstum/rediparse/badges/master/coverage.svg)](https://gitlab.com/tjstum/rediparse/commits/master)
Pure Python parser of [RESP](https://redis.io/topics/protocol) (the REdis Serialization Protocol).
This implementation (mostly) conforms to the same interface as what
[hiredis-py](https://github.com/redis/hiredis-py) provides, but can be used anywhere you have Python
## Install
TBD, but honestly, feel free to drop in `rediparse.py` to your project.
TBD, but honestly, feel free to drop in `rediparse.py` to your project.
It's a single file, and the protocol is very stable.
## Requirements
......
......@@ -146,4 +146,4 @@ def BestReader(*args, **kwargs):
except (ImportError, NameError):
return PythonReader(*args, **kwargs)
else:
return Reader(*args, **kwargs)
return Reader(*args, **kwargs) # pragma: no cover
[tox]
envlist = {py35,py36}-{hiredis,nohiredis}
envlist = {py35,py36,py37}-{hiredis,nohiredis}
[testenv]
deps=
pytest
pytest-cov
hiredis: hiredis
# Python 3.4 isn't quite supported yet (no bytes % interpolation). But if it ever is,
# the typing backport is needed
py34: typing
commands=py.test
commands=py.test --cov=rediparse
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment