summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: a089e3862720199fe223dc0ca1f465de22b08966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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,multitenant-oldstylemiddleware,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
	oldstylemiddleware: OLD_STYLE_MIDDLEWARE=true
deps:
	pytest
	pytest-cov
	pytest-django
	pytest-mock
	coverage
	cssselect
	WebTest
	django-mellon
	django-webtest
	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
	pytest-freezegun
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}