forked from ceph/cephmetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (42 loc) · 1.27 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
[tox]
skipsdist = True
envlist=ansible-lint,ansible-syntax,flake8,dashboards
[testenv:ansible-lint]
install_command = pip install --upgrade {opts} {packages}
deps=
ansible-lint
commands=ansible-lint -x ANSIBLE0010,ANSIBLE0012,ANSIBLE0017 ansible/playbook.yml
[testenv:ansible-syntax]
install_command = pip install --upgrade {opts} {packages}
deps=
ansible
changedir=ansible
commands=
ansible-playbook -i '127.0.0.1,' playbook.yml --syntax-check -vv
[testenv:flake8]
install_command = pip install --upgrade {opts} {packages}
deps=
flake8
commands=flake8 --select=F,E9 {posargs:*.py collectors tests}
# Integration tests must operate against a live deployment. To run, simply:
# tox -e integration /path/to/inventory
# NOTE: A current limitation of these tests is that they assume that defaults
# were used for things like ports, usernames, etc. They do, however,
# support devel_mode=True/False.
[testenv:integration]
install_command = pip install --upgrade {opts} {packages}
deps=
ansible
pytest
pytest-xdist
testinfra
changedir=ansible
commands=
py.test -v -n auto --connection=ansible --ansible-inventory {posargs} ./roles/
[testenv:dashboards]
install_command = pip install --upgrade {opts} {packages}
deps=
pytest
changedir=dashboards
commands=
py.test -v ./