summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 148660544e8e385f832c9d04d3af907c4ab7ee0c (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
[tox]
envlist = {coverage-,}{dj18,dj19}-{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=--junit-xml=junit-{envname}.xml --cov=mellon --cov-report xml
usedevelop =
    coverage: true
    nocoverage: false
deps =
  dj18: django>1.8,<1.9
  dj19: django>1.9,<1.10
  pg: psycopg2
  httmock
  pytest
  pytest-cov
  pytest-random
  pytest-mock
  pytest-django
  pytz
  lxml
  cssselect
  django-webtest
  WebTest
  pyquery
commands =
  ./getlasso.sh
  py.test --random {env:COVERAGE:} {posargs:tests}
  coverage: mv coverage.xml coverage-{envname}.xml