Skip to content

Commit

Permalink
Add a tox test runner.
Browse files Browse the repository at this point in the history
The py27-pure environment fails as expected while trying to use the
not-yet optional AccessControl C extension.
  • Loading branch information
hannosch committed Jan 19, 2017
1 parent 891a954 commit 4986451
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.py?
.installed.cfg
.mr.developer.cfg
.tox
/bin/
/build/
/develop/
Expand Down
4 changes: 3 additions & 1 deletion buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ eggs = Zope2

[zopescripts]
recipe = zc.recipe.egg
eggs = Zope2
eggs =
Zope2
tox


[zserverscripts]
Expand Down
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
envlist =
py27,py27-pure

[testenv]
install_command = pip install --no-cache-dir --no-binary=:all: {opts} {packages}
commands =
zope-testrunner --test-path={envsitepackagesdir} -s Zope2
deps =
zope.testrunner
setenv =
PIP_NO_CACHE = 1

[testenv:py27-pure]
basepython =
python2.7
setenv =
PURE_PYTHON = 1
4 changes: 4 additions & 0 deletions versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ MarkupSafe = 0.23
mr.developer = 1.34
nose = 1.3.7
plone.recipe.command = 1.1
pluggy = 0.4.0
py = 1.4.32
Pygments = 2.1.3
python-gettext = 3.0
python-subunit = 1.2.0
setuptools = 28.6.1
snowballstemmer = 1.2.1
Sphinx = 1.4.8
testtools = 2.2.0
tox = 2.5.0
unittest2 = 1.1.0
virtualenv = 15.1.0
z3c.checkversions = 0.5
zc.buildout = 2.5.3
zc.recipe.egg = 2.0.3
Expand Down

0 comments on commit 4986451

Please sign in to comment.