diff --git a/.travis.yml b/.travis.yml index 768b9cdb3f..d6234f4e48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,9 +7,12 @@ python: - 3.6 install: - - pip install -U tox-travis pip setuptools wheel + - pip install -U tox-travis coveralls pip setuptools wheel - pip install -r requirements_dev.txt - python setup.py build_ext --inplace script: - tox + +after_success: + - coveralls diff --git a/README.rst b/README.rst index f8943b2231..89dd7b7a70 100644 --- a/README.rst +++ b/README.rst @@ -11,3 +11,6 @@ more information. .. image:: https://ci.appveyor.com/api/projects/status/7d4iko59k8hpbbik?svg=true :target: https://ci.appveyor.com/project/alimanfoo/zarr + +.. image:: https://coveralls.io/repos/github/alimanfoo/zarr/badge.svg?branch=master + :target: https://coveralls.io/github/alimanfoo/zarr?branch=master diff --git a/tox.ini b/tox.ini index 8809d5e950..575004f996 100644 --- a/tox.ini +++ b/tox.ini @@ -11,11 +11,12 @@ setenv = PYTHONHASHSEED = 42 commands = python setup.py build_ext --inplace - py27,py34,py35: nosetests -v zarr - py36: nosetests -v --with-coverage --cover-erase --cover-min-percentage=100 --cover-package=zarr --with-doctest --doctest-options=+NORMALIZE_WHITESPACE zarr + py27,py34,py35: nosetests -v --with-coverage --cover-erase --cover-package=zarr zarr + py36: nosetests -v --with-coverage --cover-erase --cover-package=zarr --with-doctest --doctest-options=+NORMALIZE_WHITESPACE zarr py36: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst py36: flake8 zarr python setup.py bdist_wheel + coverage report -m deps = -rrequirements_dev.txt