forked from danirus/django-contactme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (36 loc) · 1.23 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
# 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.
[pytest]
python_diles = test_*.py
django_find_project = false
[tox]
skipsdist = True
envlist = py27-django{14,15}, py34-django15, py{27,34}-django{16,17,18}
[testenv]
changedir = {toxinidir}/django_contactme
commands = py.test -rw --cov-config .coveragerc --cov django_contactme
deps =
pytest
pytest-cov
pytest-django
selenium
django14: Django>=1.4,<1.5
django15: Django>=1.5,<1.6
django16: Django>=1.6,<1.7
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE=django_contactme.tests.settings
[testenv:pep8]
show-source = True
commands = {envbindir}/flake8 --max-line-length=80 --exclude=.tox,docs,django_contactme/tests/settings,django_contactme/__init__.py,django_contactme/migrations django_contactme
# Flake8 only needed when linting.
# Do not care about other dependencies, it's just for linting.
deps = flake8
changedir = {toxinidir}
[testenv:js]
commands =
npm install --prefix {toxinidir}