liberation-fonts/tests/fonttest_playbook.yml
Petr Šabata a4e27e857b RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/liberation-fonts#a54f99aac83e3aa2c124b51b3a8dacaa78e147cb
2020-10-15 15:53:32 +02:00

46 lines
1.1 KiB
YAML

- hosts: localhost
vars:
config:
fontname: liberation
lang: ["en","az-az","de","el","he"]
testgiturl: https://pagure.io/font_ci_testing.git
testgitclonepath: fonttest
testfilename: fonttest.py
testfilepath: /usr/local/bin
logfilepath: /tmp/test.log
artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
tags:
- classic
remote_user: root
tasks:
- name: Install required package
dnf:
name:
- git
- "{{ config.fontname }}-fonts"
- python3
- fontconfig
- name: git clone the tests
git:
repo: "{{ config.testgiturl }}"
dest: "{{ config.testgitclonepath }}"
force: yes
- name: Test Execution
block:
- name: Execute the tests
command: python3 {{ config.testgitclonepath }}/tests/{{ config.testfilename }} "{{ config }}"
always:
- name: Pull out the artifacts
fetch:
dest: "{{ config.artifacts }}/"
src: "{{ item }}"
flat: yes
with_items:
- "{{ config.logfilepath }}"