-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathtox.ini
More file actions
38 lines (35 loc) · 772 Bytes
/
tox.ini
File metadata and controls
38 lines (35 loc) · 772 Bytes
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
[tox]
env_list = lint, ansible-{min,max}, dev
minversion = 4.5.1
skipsdist = true
[testenv]
description = tests the role with Molecule
package = wheel
wheel_build_env = .pkg
deps =
ansible-min: -r requirements/ansible-min.txt
ansible-max: -r requirements/ansible-max.txt
commands =
molecule test {posargs}
setenv =
PY_COLORS = 1
ANSIBLE_FORCE_COLOR = 1
[testenv:lint]
description = runs lint checks on the role
package = wheel
wheel_build_env = .pkg
deps =
-r requirements/lint.txt
commands =
yamllint .
ansible-lint .
flake8 --exclude .tox,.venv
setenv =
PY_COLORS = 1
ANSIBLE_FORCE_COLOR = 1
[testenv:dev]
description = dependencies for development
package = wheel
wheel_build_env = .pkg
deps =
-r requirements/dev.txt