File: main.yaml

package info (click to toggle)
python-tempestconf 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 964 kB
  • sloc: python: 4,530; makefile: 18; sh: 9
file content (36 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: Ensure tox is installed
  include_role:
    name: ensure-tox

- name: Allow git to read tempest directory
  become: yes
  command: git config --system --add safe.directory {{devstack_base_dir}}/tempest

- name: Prepare tempest venv
  become: yes
  command: tox -r --notest -efull
  args:
    chdir: "{{devstack_base_dir}}/tempest"

- name: Allow git to read plugin directories
  become: yes
  command: git config --system --add safe.directory {{item}}
  with_items: "{{plugins_paths}}"

- 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"