Skip to content

Commit

Permalink
Add tox configuration to ease running tests locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 27, 2020
1 parent cafa0a4 commit 405b7c1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
__pycache__
.installed.cfg
.mr.developer.cfg
.tox/
build/
bin/
develop-eggs/
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Also, specific versions have been tested together (including their
dependencies) and can directly be used with a buildout by specifying the
``ztk-versions.cfg`` file via the ``extends`` mechanism.

To test the ZTK, run ``bin/test-ztk``.
To test the ZTK, run ``bin/test-ztk`` or ``tox`` for all supported Python
versions.

More information is available at https://zopetoolkit.readthedocs.io/.
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[tox]
skipsdist = True
envlist =
py27,
py35,
py36,
py37,
py38,
py39,
pypy,
pypy3,

[testenv]
deps =
zc.buildout
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} install test-ztk
{envdir}/bin/test-ztk

0 comments on commit 405b7c1

Please sign in to comment.