hobo/tox.ini

64 lines
2.5 KiB
INI

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/hobo
envlist = coverage-{authentic,hobo,multipublik,multitenant,passerelle,schemas},
[testenv]
basepython = python2
whitelist_externals =
/bin/mv
usedevelop = True
setenv =
BRANCH_NAME={env:BRANCH_NAME:}
hobo: DJANGO_SETTINGS_MODULE=hobo.settings
hobo: HOBO_SETTINGS_FILE=tests/settings.py
schemas: DJANGO_SETTINGS_MODULE=hobo.settings
schemas: HOBO_SETTINGS_FILE=tests_schemas/settings.py
multitenant: PYTHONPATH=tests_multitenant
multitenant: DJANGO_SETTINGS_MODULE=settings
multipublik: PYTHONPATH=tests_multipublik
multipublik: DJANGO_SETTINGS_MODULE=settings
authentic: DEBIAN_CONFIG_COMMON=debian/debian_config_common.py
authentic: DJANGO_SETTINGS_MODULE=authentic2.settings
authentic: AUTHENTIC2_SETTINGS_FILE=tests_authentic/settings.py
passerelle: DEBIAN_CONFIG_COMMON=debian/debian_config_common.py
passerelle: PASSERELLE_SETTINGS_FILE=tests_passerelle/settings.py
passerelle: DJANGO_SETTINGS_MODULE=passerelle.settings
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=hobo/ --cov-config .coveragerc
fast: NOMIGRATIONS=--nomigrations
deps:
pytest<4.1
pytest-cov
pytest-django
pytest-mock
coverage
raven
cssselect
WebTest
django-mellon
django-webtest<1.9.3
celery<4
Markdown<3
django-tables2<2.0
authentic: http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz
passerelle: http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz
passerelle: suds
passerelle: python-memcached
multitenant: systemd-python
http://git.entrouvert.org/debian/django-tenant-schemas.git/snapshot/django-tenant-schemas-master.tar.gz
httmock
requests
commands =
./getlasso.sh
hobo: py.test {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests/}
schemas: py.test {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_schemas/}
multitenant: py.test {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_multitenant/}
multipublik: py.test {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_multipublik/}
authentic: py.test {env:FAST:} {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_authentic/}
passerelle: py.test {env:COVERAGE:} {env:NOMIGRATIONS:} {posargs:tests_passerelle/}
coverage: mv coverage.xml coverage-{envname}.xml
coverage: mv htmlcov htmlcov-{envname}