diff --git a/smc-anjalioldlipi-fonts.spec b/smc-anjalioldlipi-fonts.spec index c1d6cda..b2e2786 100644 --- a/smc-anjalioldlipi-fonts.spec +++ b/smc-anjalioldlipi-fonts.spec @@ -3,7 +3,7 @@ Name: %{fontname}-fonts Version: 7.1.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Open Type Fonts for Malayalam script License: OFL URL: https://gitlab.com/smc/fonts/anjalioldlipi @@ -62,6 +62,9 @@ appstream-util validate-relax --nonet \ %{_datadir}/metainfo/%{fontname}.metainfo.xml %changelog +* Wed Jul 24 2019 Vishal Vijayraghavan - 7.1.1-4 +- Font CI test added + * Mon Feb 25 2019 Vishal Vijayraghavan - 7.1.1-3 - Build font from sources diff --git a/tests/fonttest_playbook.yml b/tests/fonttest_playbook.yml new file mode 100644 index 0000000..7de0113 --- /dev/null +++ b/tests/fonttest_playbook.yml @@ -0,0 +1,45 @@ +- hosts: localhost + vars: + config: + fontname: smc-anjalioldlipi + 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 }}" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8b93f92 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: fonttest_playbook.yml \ No newline at end of file