diff --git a/shobhika-fonts.spec b/shobhika-fonts.spec index 719a33a..b5af087 100644 --- a/shobhika-fonts.spec +++ b/shobhika-fonts.spec @@ -3,7 +3,7 @@ Name: %{fontname}-fonts Version: 1.04 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Free Indian truetype/open type fonts License: OFL URL: https://github.com/Sandhi-IITBombay/Shobhika @@ -55,6 +55,9 @@ appstream-util validate-relax --nonet \ %{_datadir}/metainfo/%{fontname}.metainfo.xml %changelog +* Wed Jul 24 2019 Vishal Vijayraghavan - 1.04-5 +- Font CI test added + * Sat Feb 02 2019 Fedora Release Engineering - 1.04-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/tests/fonttest_playbook.yml b/tests/fonttest_playbook.yml new file mode 100644 index 0000000..6b17888 --- /dev/null +++ b/tests/fonttest_playbook.yml @@ -0,0 +1,45 @@ +- hosts: localhost + vars: + config: + fontname: shobhika + lang: ["ta","kok","mr","hi"] + 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