docbow/tox.ini

44 lines
1.5 KiB
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/docbow/{env:BRANCH_NAME:}
envlist = py3-{django111,django22}-{pw,pfwb}-coverage,py3-{django111,django22}-mellon-coverage,py3-django11120, py3-{django111,django22}-pfwbmellon-coverage
[testenv]
usedevelop = True
deps =
setuptools<50
M2Crypto
django111: django<2
django22: django>=2.2,<2.3
django111: django-tables2<2.0
pfwb: SQLAlchemy-Utils<0.36.7
django11120: django==1.11.20
django11120: django-tables2<2.0
django-webtest
mock<4
psycopg2
pytest
pytest-cov
pytest-django
pytz
mellon: django-mellon
pfwbmellon: django-mellon
py3: beautifulsoup4
setenv =
SECRET_KEY=changeme
pw: PARLEMENT=pw
pfwb: PARLEMENT=pfwb
django11120: PARLEMENT=pw
DJANGO_SETTINGS_MODULE=docbow_project.settings
DOCBOW_SETTINGS_FILE=tests/settings.py
mellon: DOCBOW_SETTINGS_FILE=tests/sso/settings.py
pfwbmellon: DOCBOW_SETTINGS_FILE=tests/pfwbmellon/settings.py
coverage: COVERAGE=--cov-append --cov-report xml --cov-report html --cov=docbow_project/
BRANCH_NAME={env:BRANCH_NAME:}
commands =
./getlasso3.sh
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/}
django11120: py.test {posargs: --junitxml=junit-{envname}.xml tests/main/test_main.py}
pfwbmellon: py.test {posargs: {env:COVERAGE:} --junitxml=junit-{envname}.xml tests/pfwbmellon/}