31 lines
855 B
INI
31 lines
855 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle-atreal-openads/{env:BRANCH_NAME:}
|
|
envlist = django111-{sqlite,pg}
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python2
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
|
sqlite: DB_ENGINE=django.db.backends.sqlite3
|
|
pg: DB_ENGINE=django.db.backends.postgresql_psycopg2
|
|
deps =
|
|
django111: django>=1.11,<1.12
|
|
psycopg2-binary
|
|
pytest
|
|
pytest-cov
|
|
pytest-django<3.4.6
|
|
django-webtest<1.9.3
|
|
httmock
|
|
mock
|
|
WebTest
|
|
git+http://repos.entrouvert.org/passerelle.git/#egg=passerelle
|
|
python-magic
|
|
pylint<1.8
|
|
pylint-django<0.8.1
|
|
commands =
|
|
django111: py.test {posargs: --junitxml=test_{envname}_results.xml --cov=atreal_openads/ -W ignore::django.utils.deprecation.RemovedInDjango20Warning -vv tests/}
|
|
|