Commit 52f98ae8 authored by Bruno Renié's avatar Bruno Renié
Browse files

Expand test matrix

parent 5ceed216
......@@ -13,6 +13,8 @@
import datetime
import sphinx_rtd_theme
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
......@@ -91,7 +93,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
......
......@@ -3,21 +3,28 @@ import os
import sys
import warnings
import django
warnings.simplefilter('always')
os.environ['DJANGO_SETTINGS_MODULE'] = 'password_reset.tests.settings'
from django.test.simple import DjangoTestSuiteRunner
try:
from django.test.runner import DiscoverRunner
except ImportError:
from discover_runner import DiscoverRunner
def runtests(*test_args):
test_args = test_args or ['tests']
def runtests():
parent = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, parent)
runner = DjangoTestSuiteRunner(verbosity=1, interactive=True,
failfast=bool(os.environ.get('FAILFAST')))
failures = runner.run_tests(test_args)
if django.VERSION >= (1, 7):
django.setup()
runner = DiscoverRunner(verbosity=1, interactive=True,
failfast=bool(os.environ.get('FAILFAST')))
failures = runner.run_tests(())
sys.exit(failures)
......
[tox]
envlist =
py26-1.4, py26-1.5, py26-1.6,
py27-1.4, py27-1.5, py27-1.6,
py33-1.5, py33-1.6,
py34-1.5, py34-1.6,
py26-django1{4,5,6},
py27-django1{4,5,6,7,8},
py3{3,4}-django1{5,6,7,8},
docs, lint
[testenv]
commands = python setup.py test
[testenv:py26-1.4]
basepython = python2.6
deps =
Django<1.5
[testenv:py26-1.5]
basepython = python2.6
deps =
Django<1.6
[testenv:py26-1.6]
basepython = python2.6
deps =
Django<1.7
[testenv:py27-1.4]
basepython = python2.7
deps =
Django<1.5
[testenv:py27-1.5]
basepython = python2.7
deps =
Django<1.6
[testenv:py27-1.6]
basepython = python2.7
deps =
Django<1.7
[testenv:py33-1.5]
basepython = python3.3
deps =
Django<1.6
[testenv:py33-1.6]
basepython = python3.3
deps =
Django<1.7
[testenv:py34-1.5]
basepython = python3.3
deps =
Django<1.6
[testenv:py34-1.6]
basepython = python3.3
deps =
Django<1.7
basepython =
py26: python2.6
py27: python2.7
py33: python3.3
py34: python3.4
deps =
django14: Django>=1.4,<1.5
django15: Django>=1.5,<1.6
django16: Django>=1.6,<1.7
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
django14,django15: django-discover-runner
[testenv:docs]
basepython = python3.4
changedir = docs
deps =
Sphinx
sphinx_rtd_theme
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
basepython = python3.4
deps =
flake8
commands =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment