Newer
Older
postorius / tox.ini
@Simon Hanna Simon Hanna on 15 Oct 2017 1 KB Rework builds
[tox]
envlist = py27-django{18,19,110,111}-head,pep8


[testenv]
usedevelop = True
deps =
    mock
    vcrpy
    beautifulsoup4
    head: git+https://gitlab.com/mailman/mailmanclient.git
    head: git+https://gitlab.com/mailman/django-mailman3.git
    dev,record: -e../mailmanclient
    dev,record: -e../django-mailman3
    django18: Django>=1.8,<1.9
    django19: Django>=1.9,<1.10
    django110: Django>=1.10,<1.11
    django111: Django>=1.11,<1.12
    django-latest: https://github.com/django/django/archive/master.tar.gz
commands =
    python example_project/manage.py test --settings=test_settings {posargs:postorius}
setenv =
    PYTHONPATH = {toxinidir}
    record: POSTORIUS_VCR_RECORD_MODE = all


[testenv:coverage]
basepython = python2
deps =
    mock
    vcrpy
    coverage
    beautifulsoup4
    git+https://gitlab.com/mailman/mailmanclient.git
    git+https://gitlab.com/mailman/django-mailman3.git
commands =
    coverage: coverage run example_project/manage.py test --settings=test_settings {posargs:postorius}
    coverage: coverage html
    coverage: coverage report -m
  

[testenv:pep8]
basepython = python2
deps =
    flake8
commands =
    flake8 {posargs}


[flake8]
ignore = E123, E133
show-source = True
exclude = .git,.tox,dist,*egg,src/postorius/doc,example_project