forked from openwisp/django-rest-framework-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
27 lines (25 loc) · 882 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
[tox]
envlist =
py{36,37,38,39,py3}-django{22}-djangorestframework{310,312}{,-pytest}
py{36,37,38,39,py3}-django{30,31}-djangorestframework{312}{,-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
djangorestframework310: djangorestframework~=3.10.0
djangorestframework312: djangorestframework~=3.12.0
-rrequirements-test.txt
pytest: pytest
pytest: pytest-django