9fbe1edc3e
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/smc-rachana-fonts#e7386dd2782247e02bec8971e11f80c28651a4c0
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
- hosts: localhost
|
|
vars:
|
|
config:
|
|
fontname: smc-rachana
|
|
lang: ["ml"]
|
|
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 }}"
|