Newer
Older
postorius / tox.ini
@Florian Fuchs Florian Fuchs on 17 Apr 2015 1 KB local tox settings
[tox]
envlist = py27-django{16,17,18}

[testenv]
usedevelop = True
deps =
    -rdev-requirements.txt
    django16: Django>=1.6,<1.7
    django17: Django>=1.6,<1.8
    django18: Django==1.8
commands =
    django-admin.py test --settings=testing.test_settings {posargs:postorius}
setenv =
    PYTHONPATH = {toxinidir}

[testenv:record]
basepython = python2.7
deps =
    -rdev-requirements.txt
    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:local-dev]
usedevelop = True
basepython = python2.7
deps =
    -rdev-requirements.txt
    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:local-dev-record]
usedevelop = True
basepython = python2.7
deps =
    -rdev-requirements.txt
    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}