Skip to content

Commit

Permalink
Fix tox config:
Browse files Browse the repository at this point in the history
- make output more colorful
- fix coverage computation (otherwise it fails)
- fix flake8 check which failed when there was no parts dir
  • Loading branch information
Michael Howitz committed Feb 2, 2018
1 parent a9d94f8 commit e48b2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,6 +3,7 @@ build
coverage
develop
dist
flake8
htmlcov
lib
parts
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Expand Up @@ -11,14 +11,14 @@ envlist =
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
coverage run {envbindir}/test {posargs:-cv}
skip_install = true
deps =
setuptools==33.1.1
zc.buildout
coverage
setenv =
COVERAGE_FILE=.coverage
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage]
basepython = python2.7
Expand All @@ -39,4 +39,4 @@ deps =
flake8-html
flake8-debugger
commands =
flake8 --format=html --htmldir={toxinidir}/parts/flake8 --doctests src tests setup.py {posargs}
flake8 --format=html --htmldir={toxinidir}/flake8 --doctests src tests setup.py {posargs}

0 comments on commit e48b2cb

Please sign in to comment.