45 lines
1.3 KiB
INI
45 lines
1.3 KiB
INI
[tox]
|
|
envlist =
|
|
py27-{dj17,dj18,dj19,dj110,dj111}-{sqlite,postgres},
|
|
py35-{dj18,dj19,dj110,dj111,dj20,dj21,dj22}-{sqlite,postgres},
|
|
py36-{dj18,dj19,dj110,dj111,dj20,dj21,dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
|
py37-{dj20,dj21,dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
|
py38-{dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
|
py39-{dj22,dj30,dj31,dj32,djmaster}-{sqlite,postgres},
|
|
[testenv]
|
|
passenv = CI TRAVIS TRAVIS_*
|
|
deps =
|
|
dj17: Django == 1.7.*
|
|
dj18: Django == 1.8.*
|
|
dj19: Django == 1.9.*
|
|
dj110: Django == 1.10.*
|
|
dj111: Django == 1.11.*
|
|
dj20: Django == 2.0.*
|
|
dj21: Django == 2.1.*
|
|
dj22: Django == 2.2.*
|
|
dj30: Django == 3.0.*
|
|
dj31: Django == 3.1.*
|
|
dj32: Django == 3.2.*
|
|
djmaster: https://github.com/django/django/archive/master.tar.gz
|
|
# mysql: mysqlclient
|
|
postgres: psycopg2-binary
|
|
coverage
|
|
codecov
|
|
setenv =
|
|
sqlite: DATABASE_ENGINE=sqlite
|
|
# mysql: DATABASE_ENGINE=mysql
|
|
postgres: DATABASE_ENGINE=postgres
|
|
commands =
|
|
coverage run --append --source=admin_interface setup.py test
|
|
coverage report -m
|
|
codecov
|
|
|
|
[testenv:checkmigrations]
|
|
passenv = CI TRAVIS TRAVIS_*
|
|
deps =
|
|
-r requirements.txt
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
commands =
|
|
django-admin makemigrations --check --settings tests.settings
|