forked from Stranger6667/postmarker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (48 loc) · 1.09 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[tox]
envlist = py27, py34, py35, py36, py37, pypy, pypy3, jython, lint
skipsdist = True
[testenv]
passenv =
SERVER_TOKEN
ACCOUNT_TOKEN
deps =
requests
pytest<3.3
pytest-django<3.0.0
pytest-tornado<0.6
coverage
betamax
betamax_serializers
py27,pypy,pypy3,py33,py34,py35,py36,py37: tornado>4.0.0,<5.0
py27,pypy: mock
py27,pypy,py34,py35: Django>=1.10.0,<1.11.0
py36: Django>=1.11.0,<2.0.0
py37: Django>=2.1.0,<2.2.0
usedevelop = True
commands =
coverage run --source postmarker -m pytest --ds tests.django.settings {posargs:tests}
coverage xml
[testenv:jython]
deps =
requests
pytest
betamax
betamax_serializers
mock
commands = pytest --ignore=tests/django --ignore=tests/tornado {posargs:tests}
[testenv:lint]
deps =
black
isort
commands =
black -l 120 --check postmarker tests setup.py
isort -rc -c {toxinidir}/postmarker {toxinidir}/tests {toxinidir}/setup.py
[testenv:record]
deps =
requests
pytest
betamax
betamax_serializers
Django
py27,pypy: mock
commands = pytest --record {posargs:tests}