tox: run tests against django 2.2 (#41633)

This commit is contained in:
Frédéric Péters 2020-04-13 11:00:11 +02:00
parent 87fa6a012d
commit b169e4d093
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,7 @@
[tox] [tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/{env:BRANCH_NAME:} toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/{env:BRANCH_NAME:}
envlist = {py2,py3}-dj111 envlist = {py2,py3}-dj111,py3-dj22
[testenv] [testenv]
usedevelop = true usedevelop = true
@ -15,6 +15,7 @@ setenv =
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml
deps = deps =
dj111: django>=1.11,<1.12 dj111: django>=1.11,<1.12
dj22: django>=2.2,<2.3
coverage coverage
pytest pytest
pytest-cov pytest-cov
@ -25,10 +26,11 @@ deps =
mock mock
pyquery pyquery
tabulate tabulate
dj22: djangorestframework>=3.7,<3.8
py2: django-appconf<1.0.4 py2: django-appconf<1.0.4
http://git.entrouvert.org/hobo.git/snapshot/hobo-master.tar.gz http://git.entrouvert.org/hobo.git/snapshot/hobo-master.tar.gz
commands = commands =
dj111: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/} py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
[pytest] [pytest]
filterwarnings = filterwarnings =
once:.* once:.*