summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini65
1 files changed, 51 insertions, 14 deletions
diff --git a/tox.ini b/tox.ini
index a8a4fa9..eb70366 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,26 +1,63 @@
+# Generated from:
+# https://github.com/zopefoundation/meta/tree/master/config/c-code
[tox]
+minversion = 3.18
envlist =
- py27,py35,py36,py37,py38,pypy,pypy3,coverage,docs
+ lint
+ py27,py27-pure
+ py35,py35-pure
+ py36,py36-pure
+ py37,py37-pure
+ py38,py38-pure
+ py39,py39-pure
+ py310,py310-pure
+ py311,py311-pure
+ pypy
+ pypy3
+ docs
+ coverage
[testenv]
-extras = test
+usedevelop = true
+deps =
+setenv =
+ pure: PURE_PYTHON=1
+ !pure-!pypy-!pypy3: PURE_PYTHON=0
commands =
- zope-testrunner --test-path=src []
-
+ zope-testrunner --test-path=src {posargs:-vc}
+extras =
+ test
[testenv:coverage]
-usedevelop = true
-basepython =
- python2.7
+basepython = python3
+allowlist_externals =
+ mkdir
+deps =
+ coverage
+setenv =
+ PURE_PYTHON=1
commands =
- coverage run -m zope.testrunner --test-path=src []
- coverage report --fail-under=100
+ mkdir -p {toxinidir}/parts/htmlcov
+ coverage run -m zope.testrunner --test-path=src {posargs:-vc}
+ coverage html -i
+ coverage report -i -m --fail-under=100
+
+[testenv:lint]
+basepython = python3
+skip_install = true
+commands =
+ check-manifest
+ check-python-versions
+deps =
+ check-manifest
+ check-python-versions >= 0.19.1
+ wheel
[testenv:docs]
-basepython =
- python2.7
+basepython = python3
+skip_install = false
+extras =
+ docs
+commands_pre =
commands =
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
- sphinx-build -b doctest -d docs/_build/doctrees docs docs/_build/doctest
-deps =
- Sphinx