From d204692c68a39adc3bcad2e7d4358bc4a3b6d9b2 Mon Sep 17 00:00:00 2001 From: vvijayra Date: Jul 16 2019 06:52:19 +0000 Subject: Added CI tests --- diff --git a/lohit-nepali-fonts.spec b/lohit-nepali-fonts.spec index bc74535..72e6f28 100644 --- a/lohit-nepali-fonts.spec +++ b/lohit-nepali-fonts.spec @@ -4,7 +4,7 @@ Name: %{fontname}-fonts Version: 2.94.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Free TrueType fonts for Nepali language License: OFL @@ -51,6 +51,9 @@ install -Dm 0644 -p %{metainfo}.xml \ %{_datadir}/metainfo/%{metainfo}.xml %changelog +* Tue Jul 16 2019 Vishal Vijayraghavan - 2.94.2-7 +- Added CI tests + * Fri Feb 01 2019 Fedora Release Engineering - 2.94.2-6 - 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..d828b36 --- /dev/null +++ b/tests/fonttest_playbook.yml @@ -0,0 +1,45 @@ +- hosts: localhost + vars: + config: + fontname: lohit-nepali + lang: ["bh","bho","hi","kok","mr","ne","sa","hne","mai","brx","sat","doi"] + 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