Skip to content

Commit

Permalink
- fix up tox config and prepare for parallel runs
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed May 18, 2020
1 parent de55f40 commit 9660e40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 0 additions & 5 deletions buildout.cfg
Expand Up @@ -3,13 +3,8 @@ extends =
https://zopefoundation.github.io/Zope/releases/master/versions-prod.cfg
develop = .
parts =
tox
test

[tox]
recipe = zc.recipe.egg
eggs = tox<3.8

[test]
recipe = zc.recipe.testrunner
eggs = DocumentTemplate
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Expand Up @@ -6,6 +6,7 @@ ignore =
[flake8]
ignore =
C101
E741
exclude =
bootstrap.py
src/DocumentTemplate/__init__.py
Expand Down
12 changes: 8 additions & 4 deletions tox.ini
Expand Up @@ -9,7 +9,6 @@ envlist =

[testenv]
commands =
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} bootstrap
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
coverage run {envbindir}/test {posargs:-cv}
skip_install = true
Expand All @@ -20,9 +19,14 @@ setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
basepython = python3.6
basepython = python3
skip_install = true
deps = coverage
depends =
py35,
py36,
py37,
py38,
setenv =
COVERAGE_FILE=.coverage
commands =
Expand All @@ -33,12 +37,12 @@ commands =
coverage report

[testenv:flake8]
basepython = python3.6
basepython = python3
commands_pre =
mkdir -p {toxinidir}/parts/flake8
commands =
- isort --check-only --diff --recursive {toxinidir}/src setup.py
flake8 src tests setup.py {posargs}
flake8 src setup.py {posargs}
deps =
isort
flake8
Expand Down

0 comments on commit 9660e40

Please sign in to comment.