forked from wagtail/wagtailtrans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (48 loc) · 1.16 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
[tox]
skipsdist = True
usedevelop = True
envlist =
py{35,36,37,38}-dj{20,21,22}-wt27,
py{35,36,37,38}-dj{21,22}-wt28,
py{35,36,37,38}-dj{22}-wt29,
py{36,37,38}-dj{30}-wt28,
py{36,37,38}-dj{30}-wt29,
py{36,37,38}-dj{22,30,31}-wt210,
wagtaildev,
flake8,
[testenv]
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
install_command = pip install -e ".[test]" -U {opts} {packages}
commands =
py.test --cov=wagtailtrans --cov-report=xml tests/
deps =
dj20: django>=2.0,<2.1
dj21: django>=2.1,<2.2
dj22: django>=2.2,<3
dj30: django>=3.0,<3.1
wt27: wagtail>=2.7,<2.8
wt28: wagtail>=2.8,<2.9
wt29: wagtail>=2.9,<2.10
wt210: wagtail>=2.10,<2.11
setenv =
DJANGO_SETTINGS_MODULE=tests._sandbox.settings
[testenv:wagtaildev]
basepython = python3.7
install_command = pip install -e ".[test]" -U {opts} {packages}
deps =
git+https://github.com/wagtail/wagtail.git@master
django>=3.1
commands =
py.test --cov=wagtailtrans --cov-report=xml tests/
ignore_errors = True
[testenv:flake8]
basepython = python3.7
skip_install = True
commands =
flake8 src
deps =
flake8