Skip to content

Commit

Permalink
Merge pull request #30 from zopefoundation/coveralls_and_doctests
Browse files Browse the repository at this point in the history
Switch to modern 'coverage' environment and run doctests on all versions; fix Travis builds
  • Loading branch information
jamadden committed Sep 7, 2017
2 parents 125c9a2 + c7722e5 commit f2de462
Show file tree
Hide file tree
Showing 12 changed files with 219 additions and 193 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
@@ -0,0 +1,12 @@
[run]
source = zope.security

[report]
precision = 2
exclude_lines =
pragma: no cover
pragma NO COVER
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,3 +15,4 @@ parts
nosetests.xml
coverage.xml
.eggs
htmlcov/
30 changes: 15 additions & 15 deletions .travis.yml
Expand Up @@ -2,25 +2,25 @@ language: python
sudo: false
matrix:
include:
- python: 2.7
- python: 3.4
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
env:
- TOXENV=py27
- TOXENV=py27-pure
- TOXENV=py33
- TOXENV=py33-pure
- TOXENV=py34
- TOXENV=pypy
- TOXENV=coverage
- TOXENV=docs
- python: pypy
- python: pypy3
- python: 2.7
env: PURE_PYTHON=1
- python: 3.4
env: PURE_PYTHON=1
install:
- pip install -U pip
- pip install -U setuptools
- pip install -U tox
- pip install -U pip setuptools
- pip install -U coveralls coverage
- pip install -U -e .[test,docs]
script:
- tox
- coverage run -m zope.testrunner --test-path=src
- coverage run -a -m sphinx -b doctest -d docs/_build/doctrees docs docs/_build/doctest
after_success:
- coveralls
notifications:
email: false
cache: pip
5 changes: 5 additions & 0 deletions CHANGES.rst
Expand Up @@ -13,6 +13,11 @@ Changes
- Fix ``__length_hint__`` of proxied iterator objects. Previously it
was ignored.

- Drop support for Python 3.3.

- Enable coveralls.io for coverage measurement and run doctests on all
supported Python versions.

4.1.1 (2017-05-17)
------------------

Expand Down
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -12,5 +12,9 @@
:target: http://zopesecurity.readthedocs.org/en/latest/
:alt: Documentation Status

.. image:: https://coveralls.io/repos/github/zopefoundation/zope.security/badge.svg?branch=master
:target: https://coveralls.io/github/zopefoundation/zope.security?branch=master


The Security framework provides a generic mechanism to implement security
policies on Python objects.
2 changes: 0 additions & 2 deletions appveyor.yml
Expand Up @@ -3,8 +3,6 @@ environment:
matrix:
- python : 27
- python : 27-x64
- python : 33
- python : 33-x64
- python : 34
- python : 34-x64
- python : 35
Expand Down

0 comments on commit f2de462

Please sign in to comment.