mirror of
https://github.com/status-im/infra-role-certbot.git
synced 2025-02-22 07:38:08 +00:00
Add required git dependency.
This commit is contained in:
parent
e9f5e5e30f
commit
7daaa25cf2
@ -35,6 +35,9 @@ script:
|
||||
# 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}"'
|
||||
|
||||
# Install dependencies.
|
||||
- 'sudo docker exec "$(cat ${container_id})" ansible-galaxy install -r /etc/ansible/roles/role_under_test/tests/requirements.yml'
|
||||
|
||||
# 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'
|
||||
|
||||
|
2
tests/requirements.yml
Normal file
2
tests/requirements.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
- src: geerlingguy.git
|
@ -2,4 +2,5 @@
|
||||
- hosts: all
|
||||
|
||||
roles:
|
||||
- geerlingguy.git
|
||||
- role_under_test
|
||||
|
Loading…
x
Reference in New Issue
Block a user