forked from django-wiki/django-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (41 loc) · 883 Bytes
/
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
[tox]
# Ensure you add to .travis.yml if you add here, using `tox -l`
envlist = {py35,py36,py37}-django{21,22},{py36,py37,py38}-django{30},lint
[travis]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
[travis:env]
DJANGO =
2.2: django22
3.0: django30
LINT =
yes: lint
[testenv]
whitelist_externals=
sh
passenv =
INCLUDE_SELENIUM_TESTS
SELENIUM_SHOW_BROWSER
commands =
sh -c 'testproject/manage.py makemigrations --check'
pytest --basetemp={envtmpdir} --ds=tests.settings --cov={envsitepackagesdir}/wiki --cov-config .coveragerc {posargs}
usedevelop = false
deps =
.[test]
django21: Django>=2.1,<2.2
django22: Django>=2.2,<2.3
django30: Django>=3.0a1,<3.1
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
[testenv:lint]
basepython = python3
deps = .[testlint]
commands =
flake8 src/wiki
flake8 tests/