rally/tests/ci/playbooks/rally-install/run.yaml

36 lines
1010 B
YAML

- hosts: all
name: a run script for rally-install-* jobs
tasks:
- name: Get list of packages to install from bindep
command: "bindep -b -f {{ zuul.project.src_dir }}/bindep.txt"
register: bindep_output
ignore_errors: True
- name: Install distro packages from bindep
package:
name: "{{ bindep_output.stdout_lines }}"
state: present
become: yes
when: bindep_output.stdout_lines
- name: Install Rally system wide
shell:
executable: /bin/sh
chdir: '{{ zuul.project.src_dir }}'
cmd: "sudo pip3 install --constraint ./upper-constraints.txt ./"
- name: Check Rally base commands
shell:
cmd: |
rally --version
rally db create
rally env list
# should be loaded from ~/.rally/plugins
rally plugin show --name FakePlugin.testplugin
# builtin plugin
rally plugin show --name HttpRequests.check_request
executable: /bin/sh