forked from ansible/pytest-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
78 lines (65 loc) · 1.68 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
[tox]
envlist =
lint,
ansible_v25,
ansible_v26,
ansible_v27,
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
# ANSIBLE_SSH_PIPELINING = 1
deps =
-r{toxinidir}/test-requirements.txt
[testenv:lint]
commands =
py.test pytest_ansible --pylama {posargs}
coverage erase
[testenv:coveralls]
commands=
- coveralls
[testenv:ansible_v25]
deps =
{[testenv]deps}
ansible>=2.5.0,<2.6.0
[testenv:ansible_v26]
deps =
{[testenv]deps}
ansible>=2.6.0,<2.7.0
[testenv:ansible_v27]
deps =
{[testenv]deps}
ansible>=2.7.0,<2.8.0
[testenv:ansible_devel]
deps =
{[testenv]deps}
-egit+https://github.com/ansible/ansible.git@devel#egg=ansible
[pytest]
minversion = 4.2
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