Skip to content

Commit

Permalink
Fix tox configuration (by using buildout instead of pytest).
Browse files Browse the repository at this point in the history
  • Loading branch information
witsch committed Mar 3, 2017
1 parent 5c5f5de commit 408df88
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
[tox]
envlist = py26, py27
envlist = py27
minversion = 1.6
skipsdist = True

[testenv]
basepython =
python2.7
changedir = {toxinidir}
commands =
{envbindir}/buildout \
buildout:bin-directory={envdir}/bin \
buildout:parts-directory={envdir}/parts \
buildout:installed={envdir}/.installed.cfg \
instance:var={envdir}/var
{envbindir}/test {posargs}
deps =
ZODB3
Zope2
pytest
pytest-cov
zope.app.publisher
zope.component
zope.configuration
zope.event
zope.interface
zope.publisher
zope.security
zope.testbrowser
commands = py.test
usedevelop = True

[testenv:py26]
deps = {[testenv]deps}
unittest2
commands = py.test
usedevelop = True
zc.buildout

0 comments on commit 408df88

Please sign in to comment.