diff options
author | Charles-Henri de Boysson <ceache@users.noreply.github.com> | 2020-06-24 01:13:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 01:13:33 -0400 |
commit | 4e32e4d506be79f730d20f653cb7dffaf86c8dfc (patch) | |
tree | 9a60bd6978896a6b64243abe2f5101fbaaa9f834 | |
parent | 4e86132b49c84c7805c04677ce2aaf1f00bff713 (diff) | |
parent | 699425140dce6427a4283180748864cf89d9de0a (diff) | |
download | kazoo-4e32e4d506be79f730d20f653cb7dffaf86c8dfc.tar.gz |
Merge pull request #617 from ceache/feat/build_coverage
Feat/build coverage
-rw-r--r-- | .travis.yml | 12 | ||||
-rw-r--r-- | requirements_test.txt | 1 | ||||
-rw-r--r-- | tox.ini | 23 |
3 files changed, 22 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml index 1f74181..45059a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,17 +14,17 @@ language: python jobs: include: - python: '3.7' - env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=py37-gevent-eventlet-sasl + env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=py37-gevent-eventlet-sasl,codecov - python: '3.7' - env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=py37-gevent-eventlet-sasl + env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=py37-gevent-eventlet-sasl,codecov - python: '3.8' - env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=py38-gevent-eventlet-sasl + env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=py38-gevent-eventlet-sasl,codecov - python: '3.8' - env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=py38-gevent-eventlet-sasl DEPLOY=true + env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=py38-gevent-eventlet-sasl,codecov DEPLOY=true - python: 'pypy3' - env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=pypy3-gevent-eventlet-sasl + env: ZOOKEEPER_VERSION=3.4.14 TOX_VENV=pypy3-gevent-eventlet-sasl,codecov - python: 'pypy3' - env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=pypy3-gevent-eventlet-sasl + env: ZOOKEEPER_VERSION=3.5.8 ZOOKEEPER_PREFIX="apache-" ZOOKEEPER_SUFFIX="-bin" ZOOKEEPER_LIB="lib" TOX_VENV=pypy3-gevent-eventlet-sasl,codecov notifications: email: false install: diff --git a/requirements_test.txt b/requirements_test.txt index 06f6978..30f6df7 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -3,3 +3,4 @@ mock objgraph pytest pytest-cov +pytest-xdist @@ -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 = _ |