summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 5e744cf53f1404a6ef48d95d41c967ffb089d2e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[tox]
envlist = py3-black-junit-coverage
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/combo-plugin-imio-townstreet/{env:BRANCH_NAME:}

[testenv]
usedevelop =
  coverage: True
  nocoverage: False
setenv =
  DJANGO_SETTINGS_MODULE=combo.settings
  DB_ENGINE=django.db.backends.postgresql_psycopg2
  SETUPTOOLS_USE_DISTUTILS=stdlib
  COMBO_SETTINGS_FILE=tests/settings.py
  coverage: COVERAGE=--cov-report xml --cov-report html --cov=combo_plugin_imio-townstreet/
  junit: JUNIT=--junitxml=junit-{envname}.xml
deps =
  pytest
  pytest-cov
  pytest-django
  django-webtest<1.9.3
  WebTest
  mock<4
  psycopg2-binary<2.9
  psycopg2<2.9
  django>=1.11,<2.3
  https://git.entrouvert.org/debian/django-ckeditor.git/snapshot/django-ckeditor-main.tar.gz
  https://git.entrouvert.org/combo.git/snapshot/combo-main.tar.gz
  git+https://git.entrouvert.org/publik-django-templatetags.git
  pre-commit
commands =
  py.test {posargs: {env:JUNIT:} {env:COVERAGE:} tests/}
  black: pre-commit run black --all-files --show-diff-on-failure