2016-03-14 14:33:38 +01:00
|
|
|
[tox]
|
2020-03-25 16:06:35 +01:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/docbow/{env:BRANCH_NAME:}
|
2022-06-13 22:17:07 +02:00
|
|
|
envlist = py3-{django22,django32}-{pw,pfwb}-coverage,py3-{django22,django32}-mellon-coverage,py3-{django22,django32}-pfwbmellon-coverage, black
|
2016-03-14 14:33:38 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
deps =
|
2020-08-31 17:04:06 +02:00
|
|
|
setuptools<50
|
2019-03-06 17:13:10 +01:00
|
|
|
M2Crypto
|
2020-12-07 18:11:39 +01:00
|
|
|
django22: django>=2.2,<2.3
|
2022-06-13 22:17:07 +02:00
|
|
|
django32: django>=3.2.12,<3.3
|
2020-07-06 15:42:40 +02:00
|
|
|
pfwb: SQLAlchemy-Utils<0.36.7
|
2019-06-27 14:48:51 +02:00
|
|
|
django-webtest
|
2020-10-06 09:27:05 +02:00
|
|
|
mock<4
|
2021-06-17 08:50:03 +02:00
|
|
|
psycopg2<2.9
|
2019-03-06 17:13:10 +01:00
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
pytz
|
2020-12-07 18:11:39 +01:00
|
|
|
mellon: django-mellon
|
2020-03-31 15:56:38 +02:00
|
|
|
pfwbmellon: django-mellon
|
2020-05-04 18:27:38 +02:00
|
|
|
py3: beautifulsoup4
|
2021-02-24 11:44:19 +01:00
|
|
|
pre-commit
|
2016-03-14 14:33:38 +01:00
|
|
|
setenv =
|
2019-03-06 17:13:10 +01:00
|
|
|
SECRET_KEY=changeme
|
2020-09-15 15:06:16 +02:00
|
|
|
pw: PARLEMENT=pw
|
|
|
|
pfwb: PARLEMENT=pfwb
|
2019-03-06 17:13:10 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=docbow_project.settings
|
2019-07-03 15:30:21 +02:00
|
|
|
DOCBOW_SETTINGS_FILE=tests/settings.py
|
2019-07-01 14:02:57 +02:00
|
|
|
mellon: DOCBOW_SETTINGS_FILE=tests/sso/settings.py
|
2020-03-31 15:56:38 +02:00
|
|
|
pfwbmellon: DOCBOW_SETTINGS_FILE=tests/pfwbmellon/settings.py
|
2022-01-11 16:07:00 +01:00
|
|
|
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=docbow_project/ --cov-config .coveragerc
|
2020-03-25 16:06:35 +01:00
|
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
2016-03-14 14:33:38 +01:00
|
|
|
commands =
|
2020-12-07 18:11:39 +01:00
|
|
|
./getlasso3.sh
|
2019-07-01 14:02:57 +02:00
|
|
|
pw: py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/main/ tests/pw/}
|
|
|
|
pfwb: py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/main/ tests/pfwb/}
|
|
|
|
mellon: py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/sso/}
|
2020-03-31 15:56:38 +02:00
|
|
|
pfwbmellon: py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/pfwbmellon/}
|
2021-02-24 11:44:19 +01:00
|
|
|
black: pre-commit run black --all-files --show-diff-on-failure
|