diff --git a/liberation-narrow-fonts.spec b/liberation-narrow-fonts.spec index f26666b..abfb505 100644 --- a/liberation-narrow-fonts.spec +++ b/liberation-narrow-fonts.spec @@ -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 - 1.07.5-3 +- Resolves: #1682442 - Added CI tests + *Tue Aug 14 2018 Vishal Vijayraghavan - 1.07.5-2 - Resolves: rhbz#1614530 diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..16960f6 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,2 @@ +artifacts/ +fonttest/ diff --git a/tests/fonttest_playbook.yml b/tests/fonttest_playbook.yml new file mode 100644 index 0000000..ccbe1c4 --- /dev/null +++ b/tests/fonttest_playbook.yml @@ -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 }}" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..ba60da6 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: fonttest_playbook.yml