-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
23 lines (21 loc) · 907 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 3.18
envlist =
plone52-py{36,37,38}
plone60-py{37,38,39}
[testenv]
# We do not install with pip, but with buildout:
usedevelop = false
skip_install = true
commands_pre =
plone52: pip install -r requirements52.txt
plone52: {envbindir}/buildout -Nc {toxinidir}/test_plone52.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
plone60: pip install -r requirements60.txt
plone60: {envbindir}/buildout -Nc {toxinidir}/test_plone60.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
commands =
coverage run {envbindir}/test
coverage html --directory=parts/test/coverage