-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
45 lines (32 loc) · 936 Bytes
/
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
[tox]
envlist =
py{36}-ansible{24,25}
skipsdist = True
[testenv]
changedir = tests
deps =
ansible25: ansible>=2.5,<2.6
ansible24: ansible>=2.4,<2.5
travis: ansible25
passenv = ANSIBLE_ASK_SUDO_PASS HOME
commands =
bash -c "test -s ../requirements.yml && ansible-galaxy install --force -r ../requirements.yml || true"
bash vagrant.sh {posargs}
whitelist_externals =
bash
[testenv:travis]
passenv = ANSIBLE_ASK_SUDO_PASS HOME TRAVIS
commands =
bash -c "test -s ../requirements.yml && ansible-galaxy install --force -r ../requirements.yml || true"
ansible-playbook -i localhost, --connection=local test.yml {posargs} --skip-tags=test
bash test_idempotence.sh --env travis
whitelist_externals =
ansible-playbook
bash
[testenv:docs]
# sphinx documentation checks
changedir = docs
deps =
Sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html