combo/tox.ini

70 lines
1.7 KiB
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo/{env:BRANCH_NAME:}
envlist = coverage-py3-django22-codestyle, pylint
[testenv]
usedevelop = True
setenv =
DJANGO_SETTINGS_MODULE=combo.settings
COMBO_SETTINGS_FILE=tests/settings.py
TOX_WORK_DIR={toxworkdir}
SETUPTOOLS_USE_DISTUTILS=stdlib
coverage: COVERAGE=--cov-report xml --cov-report html --cov=combo/ --cov-config .coveragerc -v
DB_ENGINE=django.db.backends.postgresql_psycopg2
passenv =
BRANCH_NAME
deps =
django22: django>=2.2,<2.3
pywebpush
pytest-cov
pytest-django
pytest-freezegun
pytest!=5.3.3
WebTest
mock<4
httmock
pylint
pylint-django
django-webtest<1.9.3
pyquery
psycopg2-binary<2.9
django-mellon>=1.13
vobject
django-ratelimit<3
git+https://git.entrouvert.org/debian/django-ckeditor.git
git+https://git.entrouvert.org/publik-django-templatetags.git
pre-commit
uwsgidecorators
commands =
./getlasso3.sh
python manage.py compilemessages
py.test {env:COVERAGE:} {posargs: --junitxml=junit-{envname}.xml tests/}
codestyle: pre-commit run --all-files --show-diff-on-failure
[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
deps =
pytest-django
pytest-freezegun
pytest!=5.3.3
WebTest
mock<4
httmock
django-mellon>=1.13
pylint
pylint-django
django-webtest<1.9.3
pyquery
psycopg2-binary<2.9
git+https://git.entrouvert.org/debian/django-ckeditor.git
git+https://git.entrouvert.org/publik-django-templatetags.git
uwsgidecorators
commands =
./getlasso3.sh
./pylint.sh combo/ tests/