forked from ansible/pytest-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
84 lines (71 loc) · 1.83 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
81
82
83
84
[tox]
envlist =
lint,
py27-ansible_v19,
py27-ansible_v22,
py27-ansible_v23,
# py27-ansible_v24,
py27-ansible_devel,
coveralls
skip_missing_interpreters = true
[testenv]
# The following does not work properly ... demons
# commands = py.test -v --tb=native --doctest-glob='*.md' --cov=pytest_ansible {posargs}
# commands = python setup.py test --pytest-args "{posargs}"
commands =
coverage run --parallel --source pytest_ansible -m pytest -v --doctest-glob='*.md' {posargs}
coverage combine
coverage report -m
passenv = ANSIBLE_DEBUG TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv =
ANSIBLE_REMOTE_TEMP = {envdir}/.ansible-remote
ANSIBLE_LOCAL_TEMP = {envdir}/.ansible-local
deps =
-r{toxinidir}/test-requirements.txt
[testenv:lint]
basepython = python2.7
commands =
py.test pytest_ansible --pylama {posargs}
coverage erase
[testenv:coveralls]
basepython = python2.7
commands=
- coveralls
[testenv:py27-ansible_v19]
basepython=python2.7
deps =
{[testenv]deps}
ansible>=1.9.0,<2.0.0
[testenv:py27-ansible_v22]
basepython=python2.7
deps =
{[testenv]deps}
ansible>=2.2.0,<2.3.0
[testenv:py27-ansible_v23]
basepython=python2.7
deps =
{[testenv]deps}
ansible>=2.3.0,<2.4.0
[testenv:py27-ansible_devel]
basepython=python2.7
deps =
{[testenv]deps}
-egit+https://github.com/ansible/ansible.git@devel#egg=ansible
[pytest]
minversion = 2.8
addopts = -v --tb=native
[pylama]
format = pylint
skip = */.tox/*,*/.env/*
linters = mccabe,pep8,pyflakes,pydocstyle,pycodestyle
ignore = F0401,C0111,E731,D100,W0621,W0108,R0201,W0401,W0614,W0212,C901,R0914,I0011,D211,D102,D213
[pylama:pep8]
max_line_length = 120
[pylama:pylint]
max_line_length = 120
additional_builtins = config,self,item,skip
[pylama:mccabe]
max_complexity = 11
[pylama:pycodestyle]
max_line_length = 120
max-line-length = 120