forked from django-treebeard/django-treebeard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (35 loc) · 981 Bytes
/
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
#
# tox.ini for django-treebeard
#
# Read docs/tests for help on how to use tox to run the test suite.
#
[tox]
envlist =
py{36,37,38,39}-dj{22,30,31,32}-{sqlite,postgres,mysql,mssql}
[testenv:docs]
basepython = python
changedir = docs
deps =
Sphinx
Django
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
deps =
pytest>=6.0,<7.0
pytest-django>=4.0,<5.0
pytest-pythonpath>=0.7,<1.0
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
postgres: psycopg2-binary>=2.6
mysql: mysqlclient>=1.3.9
mssql: django-mssql-backend>=2.8.1
setenv =
sqlite: DATABASE_ENGINE=sqlite
postgres: DATABASE_ENGINE=psql
mysql: DATABASE_ENGINE=mysql
mssql: DATABASE_ENGINE=mssql
passenv = DATABASE_USER DATABASE_PASSWORD DATABASE_HOST DATABASE_USER_POSTGRES DATABASE_PORT_POSTGRES DATABASE_USER_MYSQL DATABASE_PORT_MYSQL
commands = pytest {posargs}