33 lines
835 B
INI
33 lines
835 B
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
|
envlist = django{18,111}
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python2
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
fast: FAST=--nomigrations
|
|
deps =
|
|
django18: django>=1.8,<1.9
|
|
django111: django>=1.11,<1.12
|
|
pytest-cov
|
|
pytest-django
|
|
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
|
|
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/}
|