Skip to content

Commit

Permalink
- add dedicated ZServer test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed May 18, 2019
1 parent 7306985 commit ce5b669
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,8 @@ matrix:
env: TOXENV=lint-py36
- python: "2.7"
env: TOXENV=py27
- python: "2.7"
env: TOXENV=py27-zserver
- python: "3.5"
env: TOXENV=py35
- python: "3.6"
Expand Down
7 changes: 7 additions & 0 deletions buildout.cfg
Expand Up @@ -12,6 +12,7 @@ parts =
zserverscripts
zopescripts
alltests
zservertests
ztktests
allpy
sphinx
Expand Down Expand Up @@ -78,6 +79,12 @@ eggs =
Record


[zservertests]
<= alltests
script = zservertests
eggs += ZServer


[ztktests]
recipe = zc.recipe.testrunner
script = ztktests
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
py27,
py27-zserver,
py35,
py36,
py37,
Expand All @@ -23,6 +24,21 @@ deps =
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:py27-zserver]
coverage_run = {env:WIN_COV:coverage run}
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 zservertests
{[testenv]coverage_run} {envdir}/bin/zservertests {posargs:-vc}
skip_install = true
deps =
-cconstraints.txt
coverage
setuptools>=36.2
zc.buildout>=2.12
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage-report]
basepython = python3.6
deps =
Expand Down

0 comments on commit ce5b669

Please sign in to comment.