forked from danirus/django-comments-xtd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (61 loc) · 1.89 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
61
62
63
64
65
66
67
# 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_files = test_*.py
django_find_project = false
[tox]
skipsdist = True
envlist = py{27,36}-django{18,19,110,111},py36-django20
[travis]
python =
2.7: py27
3.6: py36
[travis:env]
DJANGO =
1.8: django18
1.9: django19
1.10: django110
1.11: django111
2.0: django20
[testenv]
changedir = {toxinidir}/django_comments_xtd
commands = py.test -rw --cov-config .coveragerc --cov django_comments_xtd
deps =
six
docutils
Markdown
django-markup
pytest
pytest-cov
pytest-django
selenium
py27-django18: Django>=1.8,<1.9
py27-django19: Django>=1.9,<1.10
py27-django110: Django>=1.10,<1.11
py27-django111: Django>=1.11,<1.12
py27-django20: Django>=2.0,<2.1
py36-django18: Django>=1.8,<1.9
py36-django19: Django>=1.9,<1.10
py36-django110: Django>=1.10,<1.11
py36-django111: Django>=1.11,<1.12
py36-django20: Django>=2.0,<2.1
py{27,36}-django{18,19}: djangorestframework>=3.6,<3.7
py{27,36}-django{110,111,20}: djangorestframework>=3.7,<3.8
py27-django{18,19,110,111,20}: django-contrib-comments
py36-django{18,19,110,111,20}: django-contrib-comments
py27: mock
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
DJANGO_SETTINGS_MODULE=django_comments_xtd.tests.settings
[testenv:pep8]
show-source = True
commands = {envbindir}/flake8 --max-line-length=80 --exclude=.tox,docs,django_comments_xtd/tests,django_comments_xtd/__init__.py,django_comments_xtd/migrations django_comments_xtd
# 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}