passerelle-montpellier-sig/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
843 B
INI
Raw Normal View History

2020-02-05 15:49:53 +01:00
[tox]
envlist = py3-black-junit-coverage
2020-02-05 15:49:53 +01:00
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
2020-02-05 15:49:53 +01:00
coverage: COVERAGE=--cov-report xml --cov-report html --cov=passerelle_montpellier_sig/
junit: JUNIT=--junitxml=junit-{envname}.xml
deps =
2020-12-26 15:21:16 +01:00
https://git.entrouvert.org/passerelle.git/snapshot/passerelle-main.tar.gz
psycopg2-binary
2020-02-05 15:49:53 +01:00
httmock
2020-04-26 08:28:06 +02:00
psycopg2
2020-02-05 15:49:53 +01:00
pytest
pytest-cov
pytest-django
xmlschema<1.1
black: pre-commit
2020-02-05 15:49:53 +01:00
commands =
py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
black: pre-commit run black --all-files --show-diff-on-failure