forked from doableware/djongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (50 loc) · 1.48 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
# tox (https://tox.readthedocs.io/) 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 =
py{36,38}-django{21, _stable}
[testenv]
commands_pre =
pip install tblib
python tests/precheckin.py
[testenv:django21]
commands =
python tests/django_tests/manage_tests/runtests.py --check-currently-passing --django-version=21
deps =
Django==2.1
[testenv:py38-django_stable]
commands =
python tests/django_tests/runtests.py --check-currently-passing --django-version=22 --v 2 --parallel=2
deps =
Django>=2.2,<2.3
[testenv:py38-django30]
deps =
Django>=3.0,<3.1
[testenv:django22_discover]
commands =
python tests/django_tests/manage_tests/runtests.py --discover-passing --django-version=22 -v 2
deps =
Django==2.2
[testenv:django22_run_test]
commands =
python tests/django_tests/manage_tests/runtests.py --django-version=22 --failfast \
--run-specific=migrations.test_operations.OperationTests.test_rename_model
deps =
Django==2.2
[testenv:django21_discover]
commands =
python tests/django_tests/manage_tests/runtests.py --discover-passing --django-version=21 --failfast
deps =
Django==2.1
[testenv:docs]
deps =
sphinx
whitelist_externals = git
passenv = HOME
commands =
python docs/_build.py
git add .
git commit -am 'Updated docs'
git push origin master