From 467e4ebe526864492d7045b2da2295f8b25ea4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20A=C3=9Fmann?= Date: Fri, 2 May 2014 22:53:32 +0200 Subject: [PATCH] - add configuration for python 3.4 with same django versions as for 3.3 - add coverage summary and html report for checking code coverage --- .gitignore | 3 ++- tox.ini | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4401d89..de71e2b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ docs/_build *.egg test.db build/ -.tox/ \ No newline at end of file +.tox/ +htmlcov/ diff --git a/tox.ini b/tox.ini index 79c33cb..cc4a73c 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,7 @@ deps17 = https://github.com/django/django/archive/master.zip#egg=django commands = - python manage.py test -v2 {posargs:tests} + python manage.py test -v2 {posargs:tests} --failfast [testenv:flake827] @@ -113,6 +113,24 @@ deps = {[testenv]deps} {[testenv]deps17} +[testenv:py34-1.5.x] +basepython = python3.4 +deps = + {[testenv]deps} + {[testenv]deps15} + +[testenv:py34-1.6.x] +basepython = python3.4 +deps = + {[testenv]deps} + {[testenv]deps16} + +[testenv:py34-1.7.x] +basepython = python3.4 +deps = + {[testenv]deps} + {[testenv]deps17} + [testenv:pypy-1.4.x] basepython = pypy deps = @@ -136,3 +154,19 @@ basepython = pypy deps = {[testenv]deps} {[testenv]deps17} + + +[testenv:coverage-py27-1.6.x] +basepython = python2.7 +deps = + {[testenv]deps} + {[testenv]deps16} +commands = coverage erase + coverage run --source=. manage.py test -v2 {posargs:tests} + coverage report -m configurations/*py + coverage html configurations/*py + +;[testenv:coverage-py34] +;basepython = python3.4 +;commands = coverage run --source=configurations manage.py test && coverage report -m +