-
Notifications
You must be signed in to change notification settings - Fork 104
/
tox.ini
63 lines (55 loc) · 1.29 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
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = flake8,
py{27,34,35,36}-django{18,19,110,111},
py{34}-django{20},
py{35,36,37}-django{20,21,22}
py{36,37}-djangomaster,
coverage
install_command = pip install {opts} {packages}
[testenv]
deps =
-e.
flake8: flake8
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
python -Wd manage.py test {posargs}
[tox:travis]
2.7 = py27
3.4 = py34
3.5 = py35
3.6 = py36
3.7 = py37
[travis:env]
DJANGO =
1.8: django18
1.9: django19
1.10: django110
1.11: django111
2.0: django20
2.1: django21
2.2: django22
master: djangomaster
[testenv:coverage]
basepython = python3.6
deps =
coverage
Django>=2.2,<3.0
commands =
python -Wd {envbindir}/coverage run --source=django_user_agents --omit=*/tests/* manage.py test {posargs}
coverage report -m
[testenv:py36-djangomaster]
ignore_outcome=true
[testenv:py37-djangomaster]
ignore_outcome=true
[testenv:flake8]
basepython = python2.7
deps =
flake8
commands = flake8 django_user_agents --ignore=E501