Skip to content

Commit

Permalink
Merge 12a20e5 into 3ebd8db
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 2, 2018
2 parents 3ebd8db + 12a20e5 commit acc3a6e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True
source = src

[report]
precision = 2
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
*.egg-info
*.pyc
*.pyo
*.egg-info
.coverage
.coverage.*
.installed.cfg
.mr.developer.cfg
.tox
bin/
build/
coverage.xml
develop-eggs/
dist/
eggs/
htmlcov/
lib/
parts/
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ install:
- pip install six==1.10.0 # force here to avoid conflit with zc.recipe.testrunner
- pip install -U setuptools==33.1.1
- pip install zc.buildout
- pip install coveralls coverage
- buildout bootstrap
- buildout
- buildout install test
script:
- bin/test -v1
- coverage run bin/test -v1
notifications:
email: false
after_success:
- coveralls
cache:
pip: true
directories:
Expand Down
23 changes: 20 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,31 @@ envlist =
py27,
py34,
py35,
py36
py36,
coverage-report,

[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}
{envbindir}/test -v1
{envbindir}/buildout -c {toxinidir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
coverage run {envbindir}/test -v1
skip_install = true
deps =
setuptools==33.1.1
zc.buildout
coverage
setenv =
COVERAGE_FILE=.coverage.{envname}

[testenv:coverage-report]
basepython = python2.7
deps = coverage
setenv =
COVERAGE_FILE=.coverage
skip_install = true
commands =
coverage erase
coverage combine
coverage html -i
coverage xml -i
coverage report -i

0 comments on commit acc3a6e

Please sign in to comment.