passerelle-montpellier-sig/tox.ini

29 lines
843 B
INI

[tox]
envlist = py3-black-junit-coverage
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-montpellier-sig/{env:BRANCH_NAME:}
[testenv]
usedevelop =
coverage: True
nocoverage: False
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
DB_ENGINE=django.db.backends.postgresql_psycopg2
SETUPTOOLS_USE_DISTUTILS=stdlib
coverage: COVERAGE=--cov-report xml --cov-report html --cov=passerelle_montpellier_sig/
junit: JUNIT=--junitxml=junit-{envname}.xml
deps =
https://git.entrouvert.org/passerelle.git/snapshot/passerelle-main.tar.gz
psycopg2-binary
httmock
psycopg2
pytest
pytest-cov
pytest-django
xmlschema<1.1
black: pre-commit
commands =
py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
black: pre-commit run black --all-files --show-diff-on-failure