passerelle/tox.ini

37 lines
998 B
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
envlist = django{18,111}-{sqlite,pg}
[testenv]
usedevelop = True
basepython = python2
setenv =
DJANGO_SETTINGS_MODULE=passerelle.settings
PASSERELLE_SETTINGS_FILE=tests/settings.py
fast: FAST=--nomigrations
sqlite: DB_ENGINE=django.db.backends.sqlite3
pg: DB_ENGINE=django.db.backends.postgresql_psycopg2
deps =
django18: django>=1.8,<1.9
django111: django>=1.11,<1.12
pg: psycopg2-binary
pytest-cov
pytest-django<3.4.6
pytest
WebTest
mock
httmock
python-dateutil
pylint<1.8
pylint-django<0.8.1
django-webtest<1.9.3
lxml
mohawk
pytest-freezegun
pytest-httpbin
pytest-localserver
commands =
django18: py.test {posargs: {env:FAST:} --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc tests/}
django18: ./pylint.sh passerelle/
django111: py.test {posargs: --junitxml=test_{envname}_results.xml tests/}