Merge "Make local molecule testing running."
This commit is contained in:
commit
3ab6656887
|
@ -1,6 +1,10 @@
|
||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Set project path fact
|
||||||
|
set_fact:
|
||||||
|
tripleo_validations_project_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/tripleo-validations'].src_dir }}"
|
||||||
|
|
||||||
- name: Ensure output dirs
|
- name: Ensure output dirs
|
||||||
file:
|
file:
|
||||||
path: "{{ ansible_user_dir }}/zuul-output/logs"
|
path: "{{ ansible_user_dir }}/zuul-output/logs"
|
||||||
|
@ -19,13 +23,13 @@
|
||||||
- name: Run bindep
|
- name: Run bindep
|
||||||
shell: |-
|
shell: |-
|
||||||
. {{ ansible_user_dir }}/test-python/bin/activate
|
. {{ ansible_user_dir }}/test-python/bin/activate
|
||||||
{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/scripts/bindep-install
|
{{ tripleo_validations_project_path }}/scripts/bindep-install
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Setup test-python
|
- name: Setup test-python
|
||||||
pip:
|
pip:
|
||||||
requirements: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/molecule-requirements.txt"
|
requirements: "{{ tripleo_validations_project_path }}/molecule-requirements.txt"
|
||||||
virtualenv: "{{ ansible_user_dir }}/test-python"
|
virtualenv: "{{ ansible_user_dir }}/test-python"
|
||||||
virtualenv_site_packages: true
|
virtualenv_site_packages: true
|
||||||
|
|
||||||
|
@ -33,7 +37,7 @@
|
||||||
- name: Get necessary git repos
|
- name: Get necessary git repos
|
||||||
git:
|
git:
|
||||||
repo: https://opendev.org/openstack/{{ item }}
|
repo: https://opendev.org/openstack/{{ item }}
|
||||||
dest: "{{ ansible_user_dir}}/{{ zuul.project.src_dir }}/roles/roles.galaxy/{{ item }}"
|
dest: "{{ tripleo_validations_project_path }}/roles/roles.galaxy/{{ item }}"
|
||||||
version: master
|
version: master
|
||||||
force: true
|
force: true
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
- name: set basic zuul fact
|
- name: set basic zuul fact
|
||||||
set_fact:
|
set_fact:
|
||||||
zuul:
|
zuul:
|
||||||
project:
|
projects:
|
||||||
src_dir: "{{ tripleo_src }}"
|
"opendev.org/openstack/tripleo-validations":
|
||||||
|
src_dir: "{{ tripleo_src }}"
|
||||||
ansible_connection: ssh
|
ansible_connection: ssh
|
||||||
|
|
||||||
- import_playbook: pre.yml
|
- import_playbook: pre.yml
|
||||||
|
|
Loading…
Reference in New Issue