python-tempestconf/roles/install-plugins/tasks/main.yaml
Amol Kahat 5985479ecf
Added virtualenv and tox installation
python-tempestconf-tempest-devstack-* jobs were failing
due to missing virtualenv and tox.

Added 'ensure-tox' role in packstack and devstack
deployment playbook. To make sure that tox is installed
and it will not break the tempest tests run.

Change-Id: I554eb41b2e070d86c3d9f6e807a973f70d6b5f83
Signed-off-by: Amol Kahat <amolkahat@gmail.com>
2020-06-23 18:35:42 +05:30

28 lines
725 B
YAML

- name: Ensure tox is installed
include_role:
name: ensure-tox
- name: Prepare tempest venv
become: yes
command: tox -r --notest -efull
args:
chdir: "{{devstack_base_dir}}/tempest"
- name: Install plugins
become: yes
command:
cmd: >
tox -evenv-tempest --
pip install {{ item }}
--constraint {{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt
with_items: "{{ plugins_paths }}"
args:
chdir: "{{devstack_base_dir}}/tempest"
when: plugins_paths is defined
- name: List installed tempest plugins
become: yes
command: tox -evenv-tempest -- tempest list-plugins
args:
chdir: "{{devstack_base_dir}}/tempest"