Skip to content

Commit

Permalink
Merge pull request #2 from zopefoundation/test-all-suppored-python-ve…
Browse files Browse the repository at this point in the history
…rsions

Test all supported Python versions
  • Loading branch information
mgedmin committed Nov 30, 2018
2 parents b0e8e0f + 93ef5cd commit 8e0fbbb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[run]
source = z3c.currency
omit = */test*

[paths]
source =
src/z3c/currency
.tox/*/lib/python*/site-packages/z3c/currency
.tox/pypy*/site-packages/z3c/currency
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ src/*.egg-info
.tox/
.coverage
.eggs
.coverage.*
24 changes: 10 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
language: python
python:
- 2.7
- 3.6
- pypy
- pypy3
matrix:
include:
- os: linux
python: 2.7
#- os: linux
# python: 3.6
- os: linux
python: 3.7
- python: 3.7
dist: xenial
sudo: true
- os: linux
python: pypy
#- os: linux
# python: pypy3

install:
- travis_retry pip install .[form,test] z3c.form
- travis_retry pip install coverage coveralls tox zope.testing
- pip install .[form,test]
- pip install coverage coveralls zope.testrunner

script:
- coverage run setup.py test -q
- coverage run -m zope.testrunner --test-path=src -vc

notifications:
email: false

after_success:
- coveralls
- coveralls
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ envlist =

[testenv]
commands =
coverage run setup.py test -q
coverage run -m zope.testrunner --test-path=src {posargs:-v}
deps =
.[form,test]
z3c.form
zope.testing
zope.testrunner
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}

Expand All @@ -22,3 +21,5 @@ commands =
coverage erase
coverage combine
coverage report
deps =
coverage

0 comments on commit 8e0fbbb

Please sign in to comment.