File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed
Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ vagrant/.vagrant
1313.coverage
1414env
1515venv
16+ coverage.xml
Original file line number Diff line number Diff line change 11FROM fkrull/multi-python:latest
22
3- RUN apt update && apt install -y pypy pypy-dev pypy3-dev curl
4- RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.8 get-pip.py
5- RUN pip install codecov
3+ RUN apt update && apt install -y pypy pypy-dev pypy3-dev
64
75WORKDIR /redis-py
86
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ util/wait-for-it.sh ${REDIS_MASTER} -- tox -- --redis-url=redis://"${REDIS_MASTE
1313
1414# if the TRAVIS env var is defined, invoke "codecov"
1515if [ ! -z ${TRAVIS-} ]; then
16- codecov
16+ tox -e codecov
1717fi
Original file line number Diff line number Diff line change 11[pytest]
2- addopts = -s
2+ addopts = -s -- cov-report =term-missing --cov redis
33
44[tox]
55minversion = 2.4
1010 coverage
1111 mock
1212 pytest >= 2.7.0
13+ pytest-cov >= 2.10.0
1314extras =
1415 hiredis: hiredis
1516commands = {envpython} -b -m coverage run -m pytest -W always {posargs}
@@ -32,3 +33,16 @@ basepython = pypy3
3233
3334[testenv:pypy3-hiredis]
3435basepython = pypy3
36+
37+ [testenv:codecov]
38+ deps = codecov
39+ commands = codecov
40+ passenv =
41+ REDIS_*
42+ CI
43+ CI_*
44+ CODECOV_*
45+ SHIPPABLE
46+ TRAVIS
47+ TRAVIS_*
48+ VCS_*
You can’t perform that action at this time.
0 commit comments