forked from kpn/py-pkgversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
82 lines (67 loc) · 1.52 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
68
69
70
71
72
73
74
75
76
77
78
79
80
[pytest]
addopts=--tb=short
[tox]
envlist =
py27-{pip9,pip10}
py35-{pip9,pip10}
py36-{pip9,pip10}
cov
isort-check
isort-fix
lint
docs
skipsdist = true
basepython =
py27-{pip9,pip10}: python2.7
py35-{pip9,pip10}: python3.5
py36-{pip9,pip10}: python3.6
cov: python3.6
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:cov]
basepython= python3.6
commands =
py.test tests --cov-report=term-missing --cov-append --cov=pkgversion --cov-report xml {posargs}
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[general]
commands =
py.test tests
deps =
-rrequirements/requirements-base.txt
-rrequirements/requirements-testing.txt
[testenv:py27-{pip9,pip10}]
basepython = python2.7
commands =
{[general]commands}
[testenv:py35-{pip9,pip10}]
basepython = python3.5
commands =
{[general]commands}
[testenv:py36-{pip9,pip10}]
basepython = python3.6
commands =
{[general]commands}
##
# Flake8 linting
##
[testenv:lint]
basepython = python3.6
commands = flake8 pkgversion tests --exclude=pkgversion/__init__.py
deps =
flake8
[testenv:docs]
basepython = python3.6
commands = sphinx-build -W -b html {toxinidir}/docs {toxinidir}/docs/_build/html
deps =
-rrequirements/requirements-testing.txt
[testenv:isort-check]
basepython = python3.6
commands = isort -rc -c pkgversion tests
deps = isort
[testenv:isort-fix]
basepython = python3.6
commands = isort -rc pkgversion tests
deps = isort