summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: a2a945ab6f1ecebf3f26aed39de8a3105db9acc1 (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
33
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = {coverage-,}py2-{dj18,dj111}-{pg,sqlite},py3-dj111-{pg,sqlite}
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/django-mellon/

[testenv]
whitelist_externals =
  /bin/mv
setenv =
  DJANGO_SETTINGS_MODULE=testsettings
  PYTHONPATH=.
  sqlite: DB_ENGINE=sqlite3
  pg: DB_ENGINE=postgresql_psycopg2
  coverage: COVERAGE=--cov=mellon --cov-branch --cov-append --cov-report xml --cov-report html
usedevelop =
    coverage: true
deps =
  dj18: django>1.8,<1.9
  dj111: django>1.11,<1.12
  pg: psycopg2
  mock
  httmock
  pytest<4.1
  pytest-cov
  pytest-random
  pytest-mock
  pytest-django
  pytz
  lxml
  cssselect
  django-webtest<1.9.3
  WebTest
  pyquery
commands =
  py2: ./getlasso.sh
  py3: ./getlasso3.sh
  py.test -o junit_suite_name={envname} --junit-xml=junit-{envname}.xml --random {env:COVERAGE:} {posargs:tests}

[testenv:pylint]
basepython = python2.7
deps =
    pylint<1.8
    pylint-django<0.8.1
commands =
    pylint: ./pylint.sh mellon