Commit c58b0313 authored by Michael Howitz's avatar Michael Howitz Committed by GitHub

Fix coverage story and add coveralls.io. (#85)

* Fix coverage story and add coveralls.io.

* Always be verbose to avoid failing builds because of 10 minutes without output.

* Add badges.
parent 15bceebe
[run]
source = BTrees
[report] [report]
exclude_lines = exclude_lines =
# pragma: no cover # pragma: no cover
......
...@@ -13,11 +13,14 @@ matrix: ...@@ -13,11 +13,14 @@ matrix:
python: 3.5 python: 3.5
- os: linux - os: linux
python: 3.6 python: 3.6
- os: linux env: WITH_COVERAGE=1
python: 3.7-dev
- os: linux - os: linux
python: 3.6 python: 3.6
env: PURE_PYTHON=1 env:
- PURE_PYTHON=1
- WITH_COVERAGE=1
- os: linux
python: 3.7-dev
- os: linux - os: linux
python: pypy python: pypy
- os: linux - os: linux
...@@ -64,12 +67,19 @@ install: ...@@ -64,12 +67,19 @@ install:
# (https://travis-ci.org/zopefoundation/BTrees/jobs/192340692) so # (https://travis-ci.org/zopefoundation/BTrees/jobs/192340692) so
# we install with pip manually. # we install with pip manually.
- pip install -U persistent - pip install -U persistent
- if [[ "$WITH_COVERAGE" == "1" ]]; then pip install coveralls coverage; fi
- pip install -e .[test,ZODB] - pip install -e .[test,ZODB]
script: script:
- zope-testrunner --test-path=. --auto-color --auto-progress - |
if [[ "$WITH_COVERAGE" == "1" ]]; then
coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress --verbose;
else
zope-testrunner --test-path=. --auto-color --auto-progress --verbose;
fi
notifications: notifications:
email: false email: false
after_success: after_success:
- if [[ "$WITH_COVERAGE" == "1" ]]; then coveralls; fi
- echo [distutils] > ~/.pypirc - echo [distutils] > ~/.pypirc
- echo index-servers = pypi >> ~/.pypirc - echo index-servers = pypi >> ~/.pypirc
- echo [pypi] >> ~/.pypirc - echo [pypi] >> ~/.pypirc
......
...@@ -7,6 +7,18 @@ ...@@ -7,6 +7,18 @@
.. image:: https://ci.appveyor.com/api/projects/status/github/zopefoundation/BTrees?branch=master&svg=true .. image:: https://ci.appveyor.com/api/projects/status/github/zopefoundation/BTrees?branch=master&svg=true
:target: https://ci.appveyor.com/project/mgedmin/BTrees :target: https://ci.appveyor.com/project/mgedmin/BTrees
.. image:: https://coveralls.io/repos/github/zopefoundation/BTrees/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/BTrees?branch=master
.. image:: https://img.shields.io/pypi/v/BTrees.svg
:target: https://pypi.org/project/BTrees/
:alt: Current version on PyPI
.. image:: https://img.shields.io/pypi/pyversions/BTrees.svg
:target: https://pypi.org/project/BTrees/
:alt: Supported Python versions
This package contains a set of persistent object containers built around This package contains a set of persistent object containers built around
a modified BTree data structure. The trees are optimized for use inside a modified BTree data structure. The trees are optimized for use inside
ZODB's "optimistic concurrency" paradigm, and include explicit resolution ZODB's "optimistic concurrency" paradigm, and include explicit resolution
......
...@@ -37,10 +37,10 @@ deps = ...@@ -37,10 +37,10 @@ deps =
[testenv:coverage] [testenv:coverage]
basepython = basepython =
python2.7 python3.6
commands = commands =
coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress [] coverage run -m zope.testrunner --test-path=. --auto-color --auto-progress []
coverage report coverage report --fail-under=92
deps = deps =
{[testenv]deps} {[testenv]deps}
coverage coverage
......
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