From 4185bf18ae6b231b5a0dfa149fcf8e1c2c06c0b4 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Fri, 28 Jul 2023 14:32:45 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 11 ++++++++- EMPTY | 1 - tests/.gitignore | 2 ++ tests/fonttest_playbook.yml | 45 +++++++++++++++++++++++++++++++++++++ tests/tests.yml | 1 + 5 files changed, 58 insertions(+), 2 deletions(-) delete mode 100644 EMPTY create mode 100644 tests/.gitignore create mode 100644 tests/fonttest_playbook.yml create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index ec89fd1..02de676 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,11 @@ -SOURCES/liberation-fonts-2.00.3.tar.gz +liberation-fonts-ttf-1.05.3.20100510.tar.gz +liberation-fonts-ttf-1.06.0.20100721.tar.gz +/liberation-fonts-1.06.0.20100721.tar.gz +/liberation-fonts-1.07.0.tar.gz +/liberation-fonts-1.07.1.tar.gz +/liberation-fonts-1.07.2.tar.gz +/liberation-fonts-2.00.0.tar.gz +/liberation-fonts-2.00.1.tar.gz +/liberation-fonts-1.07.3.tar.gz +/liberation-fonts-1.07.4.tar.gz /liberation-fonts-2.00.3.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file 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..cfbff70 --- /dev/null +++ b/tests/fonttest_playbook.yml @@ -0,0 +1,45 @@ +- hosts: localhost + vars: + config: + fontname: liberation + lang: ["en","az-az","de","el","he"] + 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