re-import sources as agreed with the maintainer
This commit is contained in:
parent
6bb3612234
commit
9bac842a31
@ -6,7 +6,7 @@
|
||||
Name: %{fontname}-fonts
|
||||
Summary: Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
|
||||
Version: 1.07.5
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
|
||||
# exceptions:
|
||||
# The first exception is the standard FSF font exception.
|
||||
@ -78,6 +78,9 @@ appstream-util validate-relax --nonet \
|
||||
%{catalogue}/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Dec 02 2019 Vishal Vijayraghavan <vvijayra@redhat.com> - 1.07.5-3
|
||||
- Resolves: #1682442 - Added CI tests
|
||||
|
||||
*Tue Aug 14 2018 Vishal Vijayraghavan <vishalvijayraghavan@gmail.com> - 1.07.5-2
|
||||
- Resolves: rhbz#1614530
|
||||
|
||||
|
2
tests/.gitignore
vendored
Normal file
2
tests/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
artifacts/
|
||||
fonttest/
|
45
tests/fonttest_playbook.yml
Normal file
45
tests/fonttest_playbook.yml
Normal file
@ -0,0 +1,45 @@
|
||||
- hosts: localhost
|
||||
vars:
|
||||
config:
|
||||
fontname: liberation-narrow
|
||||
lang: ["de","el","en","eo","es","et","eu","fr","hr","hu","it","rm","ro","ru","tr","uk","za"]
|
||||
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 }}"
|
1
tests/tests.yml
Normal file
1
tests/tests.yml
Normal file
@ -0,0 +1 @@
|
||||
- import_playbook: fonttest_playbook.yml
|
Loading…
Reference in New Issue
Block a user