summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 579aecedd48cc739cb8c6b7f0c53a9ef7360c47f (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-django111-coverage-pylint,py3-django22
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}

[testenv]
usedevelop =
  coverage: True
setenv =
  DJANGO_SETTINGS_MODULE=welco.settings
  WELCO_SETTINGS_FILE=tests/settings.py
  SETUPTOOLS_USE_DISTUTILS=stdlib
  fast: FAST=--nomigrations
  coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=welco/
deps =
  django111: django>=1.11,<1.12
  django22: django>=2.2,<2.3
  pytest-cov
  pytest-django
  pytest!=5.3.3
  WebTest
  mock<4
  httmock
  python-dateutil
  pylint
  pylint-django
  django-webtest
  pyquery
  lxml
  git+https://git.entrouvert.org/debian/django-ckeditor.git
commands =
  pylint: ./pylint.sh welco/
  py.test {env:COVERAGE:} {posargs:tests/}