forked from openwisp/django-rest-framework-gis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
26 lines (24 loc) · 736 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
[tox]
envlist =
py{36,37,py3}-django{21, 22}{,-pytest}
py{36,37,38,py3}-django{30, 31}{,-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
django30: Django~=3.0
django31: Django~=3.1
djangorestframework~=3.10
-rrequirements-test.txt
pytest: pytest
pytest: pytest-django