[tox] toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/petale/ envlist = py3-dj111-drf39 [tox:jenkins] envlist = pylint py3-dj111-drf39 py3-dj22-drf39 [testenv] usedevelop=true setenv = DJANGO_SETTINGS_MODULE=petale.settings PETALE_SETTINGS_FILE=tests/settings.py SETUPTOOLS_USE_DISTUTILS=stdlib JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml} COVERAGE={tty::--junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=petale/ --cov-config .coveragerc} passenv= BRANCH_NAME # support for pg_virtualenv PGPORT PGHOST PGUSER PGPASSWORD deps = dj111: django>=1.11,<2 dj22: django>=2.2,<2.3 pytest-cov pytest-django pytest mock<4 dj111: djangorestframework<3.12.0 django-webtest<1.9.3 psycopg2 pyquery commands = python setup.py compile_translations py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/} [testenv:pylint] usedevelop = true basepython = python2.7 deps = Django<2.3 pylint<1.8 pylint-django<0.8.1 commands = /bin/bash -c "./pylint.sh petale/" [pytest] junit_family=xunit2 filterwarnings = error ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.* # warning of gettext() when using Django 1.11 with Python 3.8 ignore:set_output_charset\(\) is deprecated::django.utils.translation.trans_real ignore:parameter codeset is deprecated::django.utils.translation.trans_real