Skip to content
This repository has been archived by the owner on Jul 18, 2018. It is now read-only.

Commit

Permalink
Tox and Coverage configs
Browse files Browse the repository at this point in the history
  • Loading branch information
joncotton committed May 23, 2015
1 parent 7d0a82d commit c372772
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
@@ -0,0 +1,6 @@
[run]
source = armstrong.hatband
branch = True

[html]
directory = coverage
10 changes: 7 additions & 3 deletions .gitignore
@@ -1,8 +1,12 @@
*.pyc
*~
*.swp
coverage/*
build/*
mydatabase
*.egg-info
.tox/
.coverage
coverage*/
build/
docs/_build/
MANIFEST
dist/
mydatabase
25 changes: 25 additions & 0 deletions tox.ini
@@ -0,0 +1,25 @@
# Tox (tox.testrun.org) is a tool for running tests in multiple virtualenvs.
# To use it, "pip install tox" and then run "tox".
#
# To generate coverage reports for every environment, comment-toggle "commands"

[tox]
envlist =
{py26}-dj{13,14,15,16},
{py27}-dj{13,14,15,16}

[testenv]
basepython =
py26: python2.6
py27: python2.7
deps =
dj13: Django<1.4
dj14: Django<1.5
dj15: Django<1.6
dj16: Django<1.7
-r{toxinidir}/requirements/dev.txt
coverage
commands =
{envpython} -Wall -m armstrong.dev.dev_django test {posargs}
; coverage run -m armstrong.dev.dev_django test {posargs}
; coverage html --directory coverage_{envname}

0 comments on commit c372772

Please sign in to comment.