Add required git dependency.

pull/14/head
Jeff Geerling 8 years ago
parent e9f5e5e30f
commit 7daaa25cf2
  1. 3
      .travis.yml
  2. 2
      tests/requirements.yml
  3. 1
      tests/test.yml

@ -35,6 +35,9 @@ script:
# Run container in detached state. # Run container in detached state.
- 'sudo docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} ${repository}:${version} "${init}" > "${container_id}"' - 'sudo docker run --detach --volume="${PWD}":/etc/ansible/roles/role_under_test:ro ${run_opts} ${repository}:${version} "${init}" > "${container_id}"'
# Install dependencies.
- 'sudo docker exec "$(cat ${container_id})" ansible-galaxy install -r /etc/ansible/roles/role_under_test/tests/requirements.yml'
# Ansible syntax check. # Ansible syntax check.
- 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/test.yml --syntax-check' - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/test.yml --syntax-check'

@ -0,0 +1,2 @@
---
- src: geerlingguy.git

@ -2,4 +2,5 @@
- hosts: all - hosts: all
roles: roles:
- geerlingguy.git
- role_under_test - role_under_test

Loading…
Cancel
Save