Skip to content

Commit

Permalink
Test on Python 3+.
Browse files Browse the repository at this point in the history
When using buildout for the tests they break because zc.buildout does not seem to be installed.
  • Loading branch information
Michael Howitz committed Nov 29, 2018
1 parent b02af7d commit e577cb2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
17 changes: 10 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
language: python
sudo: false
dist: xenial
python:
- 2.7
- 3.5
- 3.6
- 3.7
before_install:
- pip install -U setuptools pip
- pip install -U coverage coveralls zope.testrunner
install:
- python bootstrap.py
- bin/buildout
- pip install -U -e .[zrs]
script:
- bin/test -v1
- COVERAGE_PROCESS_START=.coveragerc coverage run -m zope.testrunner --test-path=src --all -v1
notifications:
email: false
after_success:
- coverage combine
- coveralls
cache:
pip: true
directories:
- eggs/
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Breaking changes:

New features:

- *add item here*
- Add support for Python 3.6 and 3.7.

Bug fixes:

Expand Down
16 changes: 6 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@
envlist =
flake8,
py27,
py35,
py36,
py37,
coverage,

skip_missing_interpreters = False

[testenv]
usedevelop = true
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} -n install test
coverage run {envbindir}/test --all {posargs:-vc}
skip_install = true
zope-testrunner --test-path=src --all {posargs:-vc}
extras = zrs
deps =
setuptools==33.1.1
zc.buildout
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}
zope.testrunner

[testenv:coverage]
basepython = python2.7
Expand All @@ -35,5 +30,6 @@ commands =

[testenv:flake8]
basepython = python2.7
skip_install = true
deps = flake8
commands = flake8 --doctests src setup.py

0 comments on commit e577cb2

Please sign in to comment.