Skip to content

Commit

Permalink
Fix tests on Travis and enable coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed May 9, 2017
1 parent 0b0cfa7 commit 7abc84e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
30 changes: 21 additions & 9 deletions .travis.yml
@@ -1,13 +1,25 @@
language: python
sudo: false
env:
- TOXENV=py27
- TOXENV=py35
- TOXENV=py36
- TOXENV=pypy
install:
- travis_retry pip install tox
python:
- 2.7
- 3.5
- 3.6
- pypy-5.4.1
script:
- tox
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress

after_success:
- coveralls
notifications:
email: false
email: false

install:
- pip install -U pip setuptools
- pip install -U coveralls coverage
- pip install -U -e ".[test]"


cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -25,6 +25,7 @@ def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

TESTS_REQUIRE = [
'zope.testrunner',
]

setup(name='zope.app.schema',
Expand Down Expand Up @@ -56,7 +57,8 @@ def read(*rnames):
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
'Framework :: Zope3',
],
url='http://pypi.python.org/pypi/zope.app.schema',
license='ZPL 2.1',
packages=find_packages('src'),
Expand All @@ -69,7 +71,7 @@ def read(*rnames):
'zope.component',
'zope.interface',
'zope.schema',
],
],
include_package_data = True,
tests_require=TESTS_REQUIRE,
test_suite='zope.app.schema.tests.test_suite',
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Expand Up @@ -2,11 +2,7 @@
envlist = py27,py35,py36,pypy

[testenv]
usedevelop = true
commands =
python setup.py -q test
zope-testrunner --test-path=src []
deps =
zope.component
zope.interface
zope.schema
.[test]

0 comments on commit 7abc84e

Please sign in to comment.