Merge "Convert testmatrix run to venv"

This commit is contained in:
Zuul 2020-05-06 01:41:22 +00:00 committed by Gerrit Code Review
commit 4ecb62ca55
1 changed files with 11 additions and 11 deletions

View File

@ -3,23 +3,23 @@
src: "{{ test_matrix_features }}"
dest: "{{ ansible_user_dir }}"
- name: Check for virtualenv
command: which virtualenv
- name: Check for venv
command: python3 -m venv -h
changed_when: false
failed_when: false
register: virtualenv_available
register: venv_available
- name: Ensure virtualenv is installed
- name: Ensure venv
fail:
msg: "Please ensure virtualenv is available!"
msg: Can not find venv module?
when:
- virtualenv_available.rc != 0
- ansible_os_family != 'Darwin'
- venv_available.rc != 0
- name: Install PyYAML to parse the test matrix
pip:
name: PyYAML
virtualenv: "/tmp/.test_matrix_venv"
- name: Create testmatrix venv
command: python3 -m venv /tmp/.test_matrix_venv
- name: Install PyYAML to venv
command: /tmp/.test_matrix_venv/bin/pip install PyYAML
- name: Append neutron to configs for stable/ocata+
set_fact: