forked from hearsaycorp/django-richenum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (43 loc) · 1.11 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
[tox]
envlist = {py27,py35}-django{111}-{sqlite,mysql,postgres},
{py35,py36,py37}-django{210,220}-{sqlite,mysql,postgres},lint
{py36,py37}-django{300}-{sqlite,mysql,postgres},lint
[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
[testenv]
deps =
django111: Django>=1.11,<2.0
django210: Django>=2.1,<2.2
django220: Django>=2.2,<2.3
django300: Django>=2.3,<3.1
pytest
pytest-django
mysqlclient
psycopg2
skip_missing_interpreters=true
setenv =
mysql: DJANGO_DB_HOST = 127.0.0.1
mysql: DJANGO_DB_ENGINE = mysql
mysql: DJANGO_DB_USER = travis
mysql: DJANGO_DB_PASSWORD = travis
sqlite: DJANGO_DB_ENGINE = sqlite
postgres: DJANGO_DB_HOST = 127.0.0.1
postgres: DJANGO_DB_ENGINE = postgres
postgres: DJANGO_DB_USER = travis
postgres: DJANGO_DB_PASSWORD = travis
commands =
python setup.py test
[testenv:lint]
deps =
flake8
pytest
pylint
commands =
flake8 tests src setup.py
pylint --rcfile=pylint.rc src/django_richenum
pylint --rcfile=pylint.rc tests
pylint --rcfile=pylint.rc setup.py