forked from django-extensions/django-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
94 lines (83 loc) · 2.24 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
precommit
safety
mypy
{py27,py37,py38}-flake8
{py27,py34,py35,py36,py37,pypy}-dj111
{py34,py35,py36,py37,pypy}-dj20
{py35,py36,py37,pypy}-dj21
{py35,py36,py37,pypy}-dj22
{py36,py37}-dj30
{py35,py36,py37,pypy}-djmaster
py37-dj22-postgres
py37-dj22-mysql
py37-djmaster-postgres
[testenv]
commands = make test
whitelist_externals = make
passenv =
DJANGO_EXTENSIONS_DATABASE_ENGINE
DJANGO_EXTENSIONS_DATABASE_NAME
DJANGO_EXTENSIONS_DATABASE_USER
setenv =
postgres: DJANGO_EXTENSIONS_DATABASE_ENGINE = {env:DJANGO_EXTENSIONS_DATABASE_ENGINE:django.db.backends.postgresql}
postgres: DJANGO_EXTENSIONS_DATABASE_NAME = {env:DJANGO_EXTENSIONS_DATABASE_NAME:django_extensions_test}
mysql: DJANGO_EXTENSIONS_DATABASE_ENGINE = {env:DJANGO_EXTENSIONS_DATABASE_ENGINE:django.db.backends.mysql}
mysql: DJANGO_EXTENSIONS_DATABASE_NAME = {env:DJANGO_EXTENSIONS_DATABASE_NAME:django_extensions_test}
deps =
dj111: Django>=1.11,<2.0
dj20: Django>=2.0,<2.1
dj21: Django>=2.1,<2.2
dj22: Django==2.2
dj30: Django>=3.0a1,<3.1
djmaster: https://github.com/django/django/archive/master.tar.gz
shortuuid
werkzeug
django_pdb
python-dateutil
pytest-django
pytest-cov
factory-boy
py27: python-keyczar
py{34,35,36,37}: python3-keyczar
requests
mock
pygments
postgres: psycopg2-binary
mysql: mysqlclient
[testenv:precommit]
deps =
pre-commit
commands = pre-commit run -a
[testenv:safety]
deps =
safety
commands = safety check --full-report
[testenv:mypy]
deps =
mypy
commands = mypy --ignore-missing-imports django_extensions
[testenv:compile-catalog]
whitelist_externals =
make
deps =
Babel
commands =
make compile-catalog
[testenv:py27-flake8]
deps =
flake8
commands = flake8 django_extensions tests
[testenv:py37-flake8]
deps =
flake8
commands = flake8 django_extensions tests
[testenv:py38-flake8]
deps =
flake8
commands = flake8 django_extensions tests