petale/tox.ini

61 lines
1.4 KiB
INI
Raw Normal View History

2017-02-20 19:09:01 +01:00
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/petale/
envlist =
py3-dj111-drf39
[tox:jenkins]
envlist =
pylint
py3-dj111-drf39
py3-dj22-drf39
2017-02-20 19:09:01 +01:00
[testenv]
usedevelop=true
2017-02-20 19:09:01 +01:00
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
2017-02-20 19:09:01 +01:00
deps =
2020-04-06 11:03:47 +02:00
dj111: django>=1.11,<2
dj22: django>=2.2,<2.3
2017-02-20 19:09:01 +01:00
pytest-cov
2020-04-06 11:03:47 +02:00
pytest-django
2017-02-20 19:09:01 +01:00
pytest
mock<4
dj111: djangorestframework<3.12.0
2018-05-04 15:53:59 +02:00
django-webtest<1.9.3
psycopg2
2018-03-30 12:00:31 +02:00
pyquery
2017-02-20 19:09:01 +01:00
commands =
2019-10-01 12:05:11 +02:00
python setup.py compile_translations
py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/}
2020-04-06 11:03:47 +02:00
[testenv:pylint]
usedevelop = true
basepython = python2.7
2020-04-06 11:03:47 +02:00
deps =
Django<2.3
pylint<1.8
pylint-django<0.8.1
2020-04-06 11:03:47 +02:00
commands =
/bin/bash -c "./pylint.sh petale/"
2020-04-06 11:03:47 +02:00
[pytest]
junit_family=xunit2
filterwarnings =
error
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.*
2020-11-27 15:35:43 +01:00
# 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