提交 4ced2a59 编写于 作者: C Cleber Rosa

Deployment check: deploy, bootstrap and list Avocado-VT tests

Avocado-VT is a separate project, but it's a very important one,
and it should always be kept working with Avocado.

This adds the Python dependencies that are hard or impossible to
install via PIP, and so that they're available on the virtual
environment, a "site packages" options is set.

We then bootstrap Avocado-VT and finally sure that one of the common
tests is present.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 6dc64dc3
......@@ -15,7 +15,8 @@ followed:
4) Run a playbook with: ansible-playbook <PLAYBOOK_FILE_NAME>
The following playbooks Ansible are available here:
The following Ansible playbooks are available here:
- pip-git.yml: deployment Avocado using pip, from a GIT repository,
on a Python virtual environment.
- pip-git.yml: deployment of Avocado and Avocado-VT using pip, from a
GIT repository, on a Python virtual environment. Tested on EL7,
Fedora 28 and Fedora 29.
......@@ -5,6 +5,9 @@
avocado_git_url: https://github.com/avocado-framework/avocado.git
avocado_git_branch: master
avocado_egg_name: avocado-framework
avocado_vt_git_url: https://github.com/avocado-framework/avocado-vt.git
avocado_vt_git_branch: master
avocado_vt_egg_name: avocado-plugins-vt
avocado_python_rpm_packages:
- python-pip
# pip install "git+https://" quite obviously requires git
......@@ -23,6 +26,7 @@
pip:
name: "git+{{ avocado_git_url}}@{{ avocado_git_branch }}#egg={{ avocado_egg_name }}"
virtualenv: "{{ temporary_dir.path }}"
virtualenv_site_packages: yes
- name: Avocado version
shell: "{{ temporary_dir.path }}/bin/avocado --version"
changed_when: false
......@@ -62,3 +66,12 @@
pip:
name: "git+{{ avocado_git_url}}@{{ avocado_git_branch }}#egg=avocado-framework-plugin-loader-yaml&subdirectory=optional_plugins/loader_yaml"
virtualenv: "{{ temporary_dir.path }}"
- include_tasks: tasks/avocado_vt_rpm_pkgs.yml
- name: Avocado-VT plugin installation via pip
pip:
name: "git+{{ avocado_vt_git_url}}@{{ avocado_vt_git_branch }}#egg={{ avocado_vt_egg_name }}"
virtualenv: "{{ temporary_dir.path }}"
- name: Avocado-VT bootstrap
shell: "{{ temporary_dir.path }}/bin/avocado vt-bootstrap --yes-to-all --vt-skip-verify-download-assets"
- name: Avocado-VT test available
shell: "{{ temporary_dir.path }}/bin/avocado list boot"
---
- name: Install Avocado-VT Depedencies on Red Hat (like) systems
package:
name: "{{ item }}"
state: latest
with_items:
- gcc
- nc
- python-netaddr
- python-netifaces
- python2-aexpect
- qemu-img
- qemu-kvm
- tcpdump
when: ansible_facts['distribution_file_variety'] == "RedHat"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册