forked from danirus/django-comments-xtd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (48 loc) · 1.45 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
# 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-3.8-django-{2.2,3.0,3.1}
[travis]
python =
3.8: py-3.8
[travis:env]
DJANGO =
2.2: django-2.2
3.0: django-3.0
3.1: django-3.1
[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
py-3.8-django-2.2: django>=2.2,<2.3
py-3.8-django-3.0: django>=3.0,<3.1
py-3.8-django-3.1: django>=3.1,<3.2
py-3.8-django-{2.2,3.0,3.1}: djangorestframework>=3.12
py-3.8-django-{2.2,3.0,3.1}: django-contrib-comments>=2.1
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}