2017-04-24 15:25:45 +02:00
|
|
|
[tox]
|
2018-06-01 10:16:24 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:}
|
2022-08-02 16:34:23 +02:00
|
|
|
envlist = coverage-py3-django22-codestyle, pylint
|
2017-04-24 15:25:45 +02:00
|
|
|
|
|
|
|
[testenv]
|
2018-03-16 12:40:01 +01:00
|
|
|
usedevelop = True
|
2017-04-24 15:25:45 +02:00
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=combo.settings
|
|
|
|
COMBO_SETTINGS_FILE=tests/settings.py
|
2019-12-20 21:40:31 +01:00
|
|
|
TOX_WORK_DIR={toxworkdir}
|
2020-09-01 14:22:08 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2022-07-06 17:02:23 +02:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:1}
|
2022-01-11 15:22:24 +01:00
|
|
|
coverage: COVERAGE=--cov-report xml --cov-report html --cov=combo/ --cov-config .coveragerc -v
|
2021-04-09 20:18:50 +02:00
|
|
|
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
2020-06-11 11:04:29 +02:00
|
|
|
passenv =
|
|
|
|
BRANCH_NAME
|
2017-04-24 15:25:45 +02:00
|
|
|
deps =
|
2022-07-26 19:24:47 +02:00
|
|
|
django32: django>=3.2,<3.3
|
2022-07-27 15:57:46 +02:00
|
|
|
django22: django>=2.2,<2.3
|
2019-05-27 10:19:32 +02:00
|
|
|
pywebpush
|
2017-04-24 15:25:45 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2018-03-24 02:09:52 +01:00
|
|
|
pytest-freezegun
|
2022-07-06 17:02:23 +02:00
|
|
|
pytest-xdist
|
2020-01-17 14:52:43 +01:00
|
|
|
pytest!=5.3.3
|
2017-04-24 15:25:45 +02:00
|
|
|
WebTest
|
2020-10-06 09:28:36 +02:00
|
|
|
mock<4
|
2017-04-24 15:25:45 +02:00
|
|
|
httmock
|
2021-01-08 10:49:41 +01:00
|
|
|
pylint
|
|
|
|
pylint-django
|
2022-07-27 15:57:46 +02:00
|
|
|
django32: django-webtest
|
|
|
|
django22: django-webtest<1.9.3
|
2021-05-05 14:52:49 +02:00
|
|
|
pyquery
|
2022-07-27 15:57:46 +02:00
|
|
|
django32: psycopg2-binary
|
|
|
|
django22: psycopg2-binary<2.9
|
2019-12-18 11:08:33 +01:00
|
|
|
django-mellon>=1.13
|
2019-12-20 21:40:31 +01:00
|
|
|
vobject
|
|
|
|
django-ratelimit<3
|
2020-09-24 19:59:59 +02:00
|
|
|
git+https://git.entrouvert.org/debian/django-ckeditor.git
|
2022-05-02 11:37:34 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2021-04-06 21:28:51 +02:00
|
|
|
pre-commit
|
2021-03-19 23:30:29 +01:00
|
|
|
uwsgidecorators
|
2017-04-24 15:25:45 +02:00
|
|
|
commands =
|
2020-01-28 13:33:58 +01:00
|
|
|
./getlasso3.sh
|
2018-05-22 12:30:30 +02:00
|
|
|
python manage.py compilemessages
|
2022-07-06 17:02:23 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs: --numprocesses {env:NUMPROCESSES:1} --junitxml=junit-{envname}.xml tests/}
|
2021-04-06 21:28:51 +02:00
|
|
|
codestyle: pre-commit run --all-files --show-diff-on-failure
|
2022-02-07 15:32:35 +01:00
|
|
|
|
|
|
|
[testenv:pylint]
|
|
|
|
setenv =
|
|
|
|
DJANGO_SETTINGS_MODULE=combo.settings
|
|
|
|
COMBO_SETTINGS_FILE=tests/settings.py
|
|
|
|
TOX_WORK_DIR={toxworkdir}
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
DB_ENGINE=django.db.backends.postgresql_psycopg2
|
2022-07-06 17:02:23 +02:00
|
|
|
NUMPROCESSES={env:NUMPROCESSES:1}
|
2022-02-07 15:32:35 +01:00
|
|
|
deps =
|
|
|
|
pytest-django
|
|
|
|
pytest-freezegun
|
|
|
|
pytest!=5.3.3
|
|
|
|
WebTest
|
|
|
|
mock<4
|
|
|
|
httmock
|
|
|
|
django-mellon>=1.13
|
|
|
|
pylint
|
|
|
|
pylint-django
|
2022-07-26 20:08:47 +02:00
|
|
|
django-webtest
|
2022-02-07 15:32:35 +01:00
|
|
|
pyquery
|
2022-07-26 19:24:47 +02:00
|
|
|
psycopg2-binary
|
2022-02-07 15:32:35 +01:00
|
|
|
git+https://git.entrouvert.org/debian/django-ckeditor.git
|
2022-05-02 11:37:34 +02:00
|
|
|
git+https://git.entrouvert.org/publik-django-templatetags.git
|
2022-02-07 15:32:35 +01:00
|
|
|
uwsgidecorators
|
|
|
|
commands =
|
|
|
|
./getlasso3.sh
|
|
|
|
./pylint.sh combo/ tests/
|