2016-11-05 01:25:06 +08:00
|
|
|
[tox]
|
2016-11-05 02:01:28 +08:00
|
|
|
envlist = {ansible2.1,ansible2.2}-{initial-members}
|
2016-11-05 01:25:06 +08:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2016-11-05 02:01:28 +08:00
|
|
|
whitelist_externals =
|
|
|
|
vagrant
|
|
|
|
bash
|
2016-11-05 01:25:06 +08:00
|
|
|
passenv=*
|
|
|
|
setenv=
|
2016-11-05 01:49:18 +08:00
|
|
|
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
|
2016-11-05 01:25:06 +08:00
|
|
|
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
|
|
|
|
deps=
|
|
|
|
ansible2.1: ansible==2.1
|
|
|
|
ansible2.2: ansible==2.2
|
|
|
|
-r{toxinidir}/tests/requirements.txt
|
|
|
|
changedir=
|
2016-11-05 02:01:28 +08:00
|
|
|
initial-members: {toxinidir}/tests/functional/ubuntu/16.04/mon/initial_members
|
2016-11-05 01:25:06 +08:00
|
|
|
commands=
|
|
|
|
vagrant up --no-provision --provider=virtualbox
|
2016-11-05 02:01:28 +08:00
|
|
|
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
|
2016-11-05 01:25:06 +08:00
|
|
|
|
2016-11-05 05:35:45 +08:00
|
|
|
ansible-playbook -i {changedir}/hosts {toxinidir}/site.yml.sample
|
2016-11-05 01:25:06 +08:00
|
|
|
|
|
|
|
py.test -v
|
2016-11-05 02:01:28 +08:00
|
|
|
vagrant destroy --force
|