-
Notifications
You must be signed in to change notification settings - Fork 81
/
tox.ini
37 lines (31 loc) · 856 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[tox]
envlist =
pep8,
{py27,py34,py35,py36,pypy27,pypy35}-django18,
{py27,py34,py35,py36,pypy27,pypy35}-django111,
{py34,py35,py36,pypy27,pypy35}-django20,
{py35,py36,pypy35}-django21,
coverage
[testenv]
usedevelop = True
recreate = False
deps =
django18: Django>=1.8,<1.9
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
commands =
make test
[testenv:pep8]
deps =
flake8==2.4.1
commands =
flake8 --ignore=E402,E731,F401,F811 --exclude=migrations dbmail
[testenv:coverage]
deps =
coverage==3.7.1
django >= 2.0, < 2.1
django-redis==3.6.2
commands =
coverage run --branch --source=dbmail ./demo/manage.py test dbmail
coverage report --omit="dbmail/test*,dbmail/migrations*"