43 lines
1.0 KiB
INI
43 lines
1.0 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
|
envlist = django111-pg
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
basepython = python2
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=passerelle.settings
|
|
PASSERELLE_SETTINGS_FILE=tests/settings.py
|
|
BRANCH_NAME={env:BRANCH_NAME:}
|
|
WCSCTL=wcs/wcsctl.py
|
|
fast: FAST=--nomigrations
|
|
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-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
|
|
pytest-sftpserver
|
|
http://quixote.python.ca/releases/Quixote-2.7b2.tar.gz
|
|
vobject
|
|
django-ratelimit
|
|
pyquery
|
|
commands =
|
|
./get_wcs.sh
|
|
django111: py.test {posargs: {env:FAST:} --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=passerelle/ --cov-config .coveragerc tests/}
|
|
django111: ./pylint.sh passerelle/
|