forked from openwisp/django-rest-framework-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
31 lines (29 loc) · 1.03 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
[tox]
envlist =
py{37,38,39,py3}-django{22}-djangorestframework{310,312}{,-pytest}
py{37,38,39,py3}-django{30,31,32}-djangorestframework{312}{,-pytest}
py{38,39,py3}-django{40}-djangorestframework{313}{,-pytest}
[testenv]
usedevelop = true
passenv = TRAVIS TRAVIS_*
setenv =
DJANGO_SETTINGS_MODULE=settings
; Hack: use an environment var to specify the test runner (to avoid using
; "nopytest" as a factor).
DRFG_TEST_RUNNER=./tests/manage.py test
pytest: DRFG_TEST_RUNNER=-m pytest
commands =
coverage run --source=rest_framework_gis {env:DRFG_TEST_RUNNER} {posargs:tests/django_restframework_gis_tests}
travis: - coveralls
deps =
django22: Django~=2.2.0
django30: Django~=3.0.0
django31: Django~=3.1.0
django32: Django~=3.2.0
django40: Django~=4.0.0
djangorestframework310: djangorestframework~=3.10.0
djangorestframework312: djangorestframework~=3.12.0
djangorestframework313: djangorestframework~=3.13.0
-rrequirements-test.txt
pytest: pytest
pytest: pytest-django