-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
64 lines (54 loc) · 1.28 KB
/
tox.ini
File metadata and controls
64 lines (54 loc) · 1.28 KB
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
# Copyright (C) 2019, Nokia
[tox]
envlist = py27, py36, docs, pylint, pylint27
[base]
deps =
mock
pytest
pytest-cov
pytest-flakes
pytest-pep8
pytest-console-scripts
[testenv]
setenv =
COVERAGE_FILE = .coverage{envname}
passenv = COVERAGE_FILE
changedir = {envtmpdir}
commands = {posargs:py.test \
--junitxml=junit.xml \
--cov-config {toxinidir}/.coveragerc \
--cov={envsitepackagesdir}/sphinxinvoke \
{envsitepackagesdir}/sphinxinvoke {toxinidir}/tests}
deps = {[base]deps}
[pytest]
addopts = --pep8 --cov-report xml
norecursedirs = bin lib include Scripts
[pylintbase]
deps =
{[base]deps}
commands = pylint {posargs: --reports=n --rcfile={toxinidir}/.pylintrc \
{toxinidir}/src/sphinxinvoke {toxinidir}/tests }
[testenv:pylint]
basepython = python3
deps =
{[pylintbase]deps}
pylint
commands = {[pylintbase]commands}
[testenv:pylint27]
basepython = python2.7
deps =
{[pylintbase]deps}
pylint < 2.0
commands = {[pylintbase]commands}
[testenv:docs]
changedir = {toxinidir}
deps=
crl.devutils
commands=
crl create_docs --verbose
[testenv:test]
changedir = {toxinidir}
deps=
{[testenv:docs]deps}
commands=
crl test --no-virtualenv -p src/sphinxinvoke/_version.py {posargs}