Skip to content

Commit

Permalink
Update to the way tox.ini looks like in other ZF packages.
Browse files Browse the repository at this point in the history
This allows to run the in Python >= 3.5 again.
  • Loading branch information
Michael Howitz committed Jan 27, 2018
1 parent a06770b commit 51eedc8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ eggs/
coverage.xml
.tox
nosetests.xml
htmlcov/
28 changes: 18 additions & 10 deletions tox.ini
@@ -1,19 +1,27 @@
[tox]
envlist =
py27,py34,py35,py36,pypy,pypy3,coverage
py27,py34,py35,py36,pypy,pypy3,coverage-report

[testenv]
usedevelop = True
commands =
zope-testrunner --test-path={envsitepackagesdir} -s zExceptions
coverage run {envbindir}/zope-testrunner --path=src --all {posargs:-vc}
deps =
.
zope.testrunner
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
basepython =
python2.7
[testenv:coverage-report]
basepython = python2.7
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
nosetests --with-xunit --with-xcoverage --where={envsitepackagesdir}/zExceptions --cover-package=zExceptions
deps =
nose
coverage
nosexcover
coverage erase
coverage combine
coverage html -i
coverage xml -i
coverage report -i

0 comments on commit 51eedc8

Please sign in to comment.