tox.ini 1 KB
Newer Older
1
[tox]
Simon Hanna's avatar
Simon Hanna committed
2
envlist = py27-django{18,19,110},pep8
3

4

5 6
[testenv]
usedevelop = True
Florian Fuchs's avatar
Florian Fuchs committed
7
deps =
Aurélien Bompard's avatar
Aurélien Bompard committed
8 9 10 11 12 13 14
    mock
    vcrpy
    coverage: coverage
    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
Simon Hanna's avatar
Simon Hanna committed
15
    django18: Django>=1.8,<1.9
Simon Hanna's avatar
Simon Hanna committed
16 17
    django19: Django>=1.9,<1.10
    django110: Django>=1.10,<1.11
18
    django-latest: https://github.com/django/django/archive/master.tar.gz
19
commands =
Aurélien Bompard's avatar
Aurélien Bompard committed
20 21 22 23
    python example_project/manage.py test --settings=test_settings {posargs:postorius}
    coverage: coverage run example_project/manage.py test --settings=test_settings {posargs:postorius}
    coverage: coverage html
    coverage: coverage report
24 25
setenv =
    PYTHONPATH = {toxinidir}
26
    record: POSTORIUS_VCR_RECORD_MODE = all
Florian Fuchs's avatar
Florian Fuchs committed
27 28


29
[testenv:pep8]
30
basepython = python2
31 32 33 34 35
deps =
    flake8
commands =
    flake8 {posargs}

36

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