-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
60 lines (54 loc) · 1.18 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
[tox]
skipsdist = true
skip_missing_interpreters = true
envlist =
py{27,34,35,36}-dj111,
py{34,35,36,37}-dj20,
py{35,36,37}-dj21,
py{35,36,37}-djmaster,
py37-{flake8,isort,readme,check-manifest}
[travis:env]
DJANGO =
1.11: dj111
2.0: dj20
2.1: dj21
master: djmaster
[testenv]
passenv = TRAVIS TRAVIS_* CODECOV_TOKEN
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
deps =
dj111: django>=1.11,<2.0
dj20: django>=2.0,<2.1
dj21: django>=2.1,<2.2
djmaster: https://github.com/django/django/archive/master.tar.gz
py27: mock
py37-dj21: codecov
coverage
commands =
coverage run --source=horizon setup.py test
py37-dj21: codecov
[testenv:flake8]
skip_install = true
basepython = python3
deps = flake8
commands = flake8
[testenv:isort]
skip_install = true
basepython = python3
deps = isort
commands = isort --recursive --verbose --check-only --diff horizon tests setup.py
[testenv:readme]
skip_install = true
basepython = python3
deps = readme_renderer
commands = python setup.py check -r -s
[testenv:check-manifest]
skip_install = true
basepython = python3
deps = check-manifest
commands = check-manifest {toxinidir}