Skip to content

Commit

Permalink
Merge pull request #10 from zopefoundation/cleanup-test-setup
Browse files Browse the repository at this point in the history
Cleanup test setup
  • Loading branch information
sallner committed Aug 11, 2017
2 parents 4a7eb3e + 8db42f1 commit 73c1f0c
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 27 deletions.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[run]
source = zope.formlib

[report]
precision = 2
exclude_lines =
pragma: no cover
if __name__ == '__main__':
raise NotImplementedError
self.fail
raise AssertionError
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ build/
develop-eggs/
eggs/
parts/
coverage/
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
language: python
sudo: false
python:
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
# - pypy3
# pending 3.3-compatible release
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
- pypy3.5-5.8.0
install:
- pip install tox-travis
- pip install -U pip setuptools
- pip install -U coverage coveralls
- pip install -U -e .[test]
script:
- tox
- coverage run -m zope.testrunner --test-path=src
after_success:
- coveralls
notifications:
email: false
cache: pip
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include *.txt
include *.py
include buildout.cfg
include tox.ini
include .travis.yml
include .coveragerc

recursive-include src *

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def alltests():
extras_require=dict(
test=['zope.configuration',
'zope.testing',
'zope.testrunner',
]
),
install_requires=[
Expand Down
20 changes: 2 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ envlist =

[testenv]
commands =
python setup.py -q test -q
zope-testrunner --test-path=src
deps =
pytz
zope.browser
zope.browserpage
zope.component
zope.event
zope.i18n
zope.i18nmessageid
zope.interface
zope.lifecycleevent
zope.publisher
zope.schema
zope.security
zope.traversing
zope.datetime
zope.configuration
zope.testing
zope.testrunner
.[test]

0 comments on commit 73c1f0c

Please sign in to comment.