2016-03-03 17:16:54 +01:00
|
|
|
[tox]
|
2018-08-09 17:24:50 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
|
|
|
envlist = django{18,111}
|
2016-03-03 17:16:54 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-08-09 17:24:50 +02:00
|
|
|
usedevelop = True
|
|
|
|
basepython = python2
|
2016-03-03 17:16:54 +01:00
|
|
|
setenv =
|
2016-03-10 14:05:24 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
2016-10-07 10:56:48 +02:00
|
|
|
fast: FAST=--nomigrations
|
2016-03-03 17:16:54 +01:00
|
|
|
deps =
|
|
|
|
django18: django>=1.8,<1.9
|
2017-10-25 23:42:26 +02:00
|
|
|
django111: django>=1.11,<1.12
|
2016-03-03 17:16:54 +01:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
|
|
|
pytest
|
|
|
|
WebTest
|
|
|
|
mock
|
2016-04-06 18:39:39 +02:00
|
|
|
httmock
|
2016-05-09 17:18:31 +02:00
|
|
|
python-dateutil
|
2017-12-20 16:06:16 +01:00
|
|
|
pylint<1.8
|
2018-02-15 10:25:22 +01:00
|
|
|
pylint-django<0.9
|
2018-05-03 18:14:58 +02:00
|
|
|
django-webtest<1.9.3
|
2017-05-23 00:40:18 +02:00
|
|
|
lxml
|
2018-05-14 15:03:56 +02:00
|
|
|
mohawk
|
2016-03-10 09:41:29 +01:00
|
|
|
commands =
|
2018-08-09 17:24:50 +02:00
|
|
|
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/}
|