OpenDev Sysadmins 88850a55ec OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:03 +00:00

32 lines
910 B
YAML

- hosts: all
vars:
bindep_profile: test
tasks:
- name: Install requirements
pip:
chdir: "{{ zuul_work_dir }}"
virtualenv: "{{ zuul_work_virtualenv }}"
requirements: requirements.txt
- name: Install the project from source
pip:
chdir: "{{ zuul_work_dir }}"
virtualenv: "{{ zuul_work_virtualenv }}"
name: .
- name: Run bindep with the file
command: >
{{ zuul_work_virtualenv }}/bin/bindep -b -f
"{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/opendev/bindep'].src_dir }}/bindep/tests/bindep.txt"
{{ bindep_profile }}
register: _bindep_output
changed_when: false
failed_when: false
- name: Install distro packages from bindep
package:
name: "{{ _bindep_output.stdout_lines }}"
state: present
become: yes
when: _bindep_output.stdout_lines