Newer
Older
postorius / tox.ini
@Aurélien Bompard Aurélien Bompard on 2 Mar 2016 1 KB Raise Django version dependency to 1.8
[tox]
envlist = py27-django{18,19}

[base]
deps = 
  git+https://gitlab.com/mailman/mailmanclient.git
  mock
  vcrpy
  coverage

[testenv]
usedevelop = True
deps =
    {[base]deps}
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10a
commands =
    coverage run {envbindir}/django-admin.py test --settings=testing.test_settings {posargs:postorius}
    coverage report
setenv =
    PYTHONPATH = {toxinidir}

[testenv:record]
basepython = python2.7
deps =
    {[base]deps}
    Django==1.8
setenv = 
    PYTHONPATH = {toxinidir}
    POSTORIUS_VCR_RECORD_MODE = all
commands =
    django-admin.py test --settings=testing.test_settings {posargs:postorius}


# These are used for local development and expect mailman.client to be
# sitting in a directory next to this one. 
[testenv:dev]
usedevelop = True
basepython = python2.7
deps =
    {[base]deps}
    Django==1.8
setenv = 
    PYTHONPATH = {toxinidir}
commands =
    # Install mailman.client from local repo instead of from pypi
    pip install -e ../mailman.client
    django-admin.py test --settings=testing.test_settings {posargs:postorius}

[testenv:dev-record]
usedevelop = True
basepython = python2.7
deps =
    {[base]deps}
    Django==1.8
setenv = 
    PYTHONPATH = {toxinidir}
    POSTORIUS_VCR_RECORD_MODE = all
commands =
    # Install mailman.client from local repo instead of from pypi
    pip install -e ../mailman.client
    django-admin.py test --settings=testing.test_settings {posargs:postorius}