42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
- hosts: localhost
|
||
|
pre_tasks:
|
||
|
- name: Check if dogtail testing tool is installed
|
||
|
register: dogtail_run_headless
|
||
|
find:
|
||
|
paths: "{{ ansible_env.PATH.split(':') }}"
|
||
|
pattern: dogtail-run-headless
|
||
|
|
||
|
- name: Build and install dogtail testing tool
|
||
|
when: dogtail_run_headless.matched == 0
|
||
|
block:
|
||
|
- name: Installing build dependencies for dogtail
|
||
|
package:
|
||
|
name:
|
||
|
- git
|
||
|
|
||
|
- name: Fetching dogtail from remote repository
|
||
|
git:
|
||
|
repo: 'https://gitlab.com/dogtail/dogtail.git'
|
||
|
dest: dogtail
|
||
|
force: yes
|
||
|
|
||
|
- name: build dogtail
|
||
|
command: "{{ ansible_python_interpreter }} setup.py build"
|
||
|
args:
|
||
|
chdir: dogtail
|
||
|
|
||
|
- name: install dogtail
|
||
|
command: "{{ ansible_python_interpreter }} setup.py install"
|
||
|
args:
|
||
|
chdir: dogtail
|
||
|
roles:
|
||
|
- role: gnome-desktop-testing-role
|
||
|
installed_test_name: Photos
|
||
|
tags:
|
||
|
- classic
|
||
|
- gating
|
||
|
required_packages:
|
||
|
- python3-cairo
|
||
|
- python3-pyatspi
|
||
|
|