56 lines
1.6 KiB
INI
56 lines
1.6 KiB
INI
[tox]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/passerelle/{env:BRANCH_NAME:}
|
|
envlist = django111-pg-zeep2
|
|
|
|
[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
|
|
zeep2: zeep < 3.0
|
|
zeep3: zeep >= 3.0
|
|
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/
|
|
|
|
[pytest]
|
|
filterwarnings = default
|
|
error:.*
|
|
# to delete when using python3, it's a warning inside ElementTree
|
|
ignore:.*tree.iter().*:PendingDeprecationWarning
|
|
# pyproj warning about deprecation of '+init=authority:code which comes from using Proj(init='EPSG:4326') instead of Proj('EPSG:4326')
|
|
# I tried the new syntax but it broke some opengis tests
|
|
module:.*init.*authority.*code.*syntax is deprecated:DeprecationWarning:pyproj
|
|
# wcs root directory must be renamed to fix this one
|
|
ignore:Not importing directory.*/wcs':ImportWarning
|