-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathtox.ini
42 lines (38 loc) · 1.14 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
# 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 = py{27,35}-django{18,19,110}
[base]
deps =
six
pytest
pytest-cov
pytest-django
[testenv]
changedir = {toxinidir}/sample_app
commands = py.test -rw --cov-config .coveragerc --cov sample_app
basepython =
py27: python2.7
py35: python3.5
deps =
{[base]deps}
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django>=1.10,<1.11
py27: mock
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE=sample_app.tests.settings
[testenv:pep8]
show-source = True
commands = {envbindir}/flake8 --max-line-length=80 --exclude=.tox,docs,sample_app/tests/settings.py,sample_app/__init__.py,sample_app/migrations sample_app
# Flake8 only needed when linting.
# Do not care about other dependencies, it's just for linting.
deps = flake8
changedir = {toxinidir}