-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (26 loc) · 922 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
[tox]
envlist =
{py27}-{ansible2010,ansible194}
skipsdist = True
[testenv]
changedir = tests
deps =
travis: ansible
ansible2010: ansible==2.0.1.0
ansible194: ansible==1.9.4
passenv = ANSIBLE_ASK_SUDO_PASS HOME LANG LC_ALL
commands =
bash -c "test -s ../requirements.yml && ansible-galaxy install --force -r ../requirements.yml --roles-path=dependencies || 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 --roles-path=dependencies || true"
ansible-playbook -i localhost, --connection=local test.yml -e vagrant_box=localhost {posargs} -e env=travis --skip-tags=test
bash test_checkmode.sh --env travis
bash test_idempotence.sh --env travis
whitelist_externals =
ansible-playbook
bash