summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini23
1 files changed, 15 insertions, 8 deletions
diff --git a/tox.ini b/tox.ini
index c2c4304..350c206 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,18 +7,17 @@ envlist =
{gevent,eventlet,sasl,docs},
pypy3
-[testenv:pep8]
-commands = flake8 {posargs}
-
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
+passenv =
+ CI
+ TOX_*
+ TRAVIS
+ TRAVIS_*
+ ZOOKEEPER_*
setenv =
VIRTUAL_ENV={envdir}
- ZOOKEEPER_VERSION={env:ZOOKEEPER_VERSION:}
- ZOOKEEPER_PREFIX={env:ZOOKEEPER_PREFIX:}
- ZOOKEEPER_SUFFIX={env:ZOOKEEPER_SUFFIX:}
- ZOOKEEPER_LIB={env:ZOOKEEPER_LIB:}
deps =
-c{toxinidir}/constraints.txt
-r{toxinidir}/requirements.txt
@@ -28,10 +27,18 @@ deps =
eventlet: -r{toxinidir}/requirements_eventlet.txt
sasl: -r{toxinidir}/requirements_sasl.txt
sasl: kerberos
+ codecov: codecov
commands =
sasl: {toxinidir}/init_krb5.sh {envtmpdir}/kerberos \
/{toxinidir}/ensure-zookeeper-env.sh \
- pytest {posargs: -ra -v --cov=kazoo kazoo/tests}
+ pytest {posargs: -ra -v --cov-report=xml --cov=kazoo kazoo/tests}
+
+[testenv:codecov]
+commands = - codecov -e TOX_VENV,ZOOKEEPER_VERSION
+
+[testenv:pep8]
+commands = flake8 {posargs}
+
[flake8]
builtins = _