forked from mfogel/django-simple-email-confirmation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (49 loc) · 1.66 KB
/
tox.ini
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
[tox]
envlist =
py27-django17, py32-django17, py33-django17, py34-django17,
py27-django18, py32-django18, py33-django18, py34-django18,
flake8
[testenv]
commands = {envbindir}/django-admin.py test simple_email_confirmation
setenv = DJANGO_SETTINGS_MODULE=simple_email_confirmation.tests.myproject.settings
# changing the default working directory to avoid relative vs.
# absolute import errors when doing unittest discovery.
changedir = {toxworkdir}
[testenv:py27-django17]
basepython = python2.7
deps = django>=1.7,<1.8
[testenv:py32-django17]
basepython = python3.2
deps = django>=1.7,<1.8
[testenv:py33-django17]
basepython = python3.3
deps = django>=1.7,<1.8
[testenv:py34-django17]
basepython = python3.4
deps = django>=1.7,<1.8
[testenv:py27-django18]
basepython = python2.7
deps = django>=1.8,<1.9
[testenv:py32-django18]
basepython = python3.2
deps = django>=1.8,<1.9
[testenv:py33-django18]
basepython = python3.3
deps = django>=1.8,<1.9
[testenv:py34-django18]
basepython = python3.4
deps = django>=1.8,<1.9
[testenv:flake8]
deps = flake8
commands = {envbindir}/flake8 --exclude=migrations,south_migrations {toxinidir}/simple_email_confirmation
[testenv:coverage]
# The coverage results have to be copied back to the directory root
# so coveralls can find them.
# Doing that with python so we only use things inside the venv.
commands =
coverage erase
coverage run --include='*/simple_email_confirmation/*' --omit=*/migrations/*.py,*/south_migrations/*.py,*/tests/*.py {envbindir}/django-admin.py test simple_email_confirmation
python -c "import os; os.rename('.coverage', '{toxinidir}/.coverage');"
deps =
coverage
{[testenv:py27-django17]deps}