summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 9b24449abdc773c131d8099cfead2a7f0ddf46dd (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
# 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}/bijoe/{env:BRANCH_NAME:}
envlist = dj18,dj111

[testenv]
usedevelop = true
basepython = python2
setenv =
	DJANGO_SETTINGS_MODULE=bijoe.settings
	coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml 
deps =
	dj18: django>=1.8,<1.9
	dj19: django>=1.9,<1.10
	dj110: django>=1.10,<1.11
	dj111: django>=1.11,<1.12
	dj18,dj19,dj110: Django-Select2>=5
	coverage
	pytest
	pytest-cov
	pytest-django
	pytest-freezegun
	WebTest
	django-webtest<1.9.3
	pyquery
commands =
        dj111: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
        dj18: py.test {posargs: --junitxml=test_{envname}_results.xml tests/}
[pytest]
filterwarnings =
 once:.*