updated script execution command and added git install dependency

This commit is contained in:
vvijayra 2019-07-01 16:34:08 +05:30
parent e3dd01f197
commit 5d0ba10c13

View File

@ -4,7 +4,7 @@
fontname: liberation
lang: ["en","az-az","de","el","he"]
testgiturl: https://pagure.io/font_ci_testing.git
testgitclonepath: /tmp/fonttest
testgitclonepath: fonttest
testfilename: fonttest.py
testfilepath: /usr/local/bin
logfilepath: /tmp/test.log
@ -18,7 +18,8 @@
tasks:
- name: Install required package
dnf:
name:
name:
- git
- "{{ config.fontname }}-fonts"
- python3
- fontconfig
@ -27,14 +28,12 @@
git:
repo: "{{ config.testgiturl }}"
dest: "{{ config.testgitclonepath }}"
- name: Install the test files
copy: src={{ config.testgitclonepath }}/tests/{{ config.testfilename }} dest={{ config.testfilepath }}/{{ config.testfilename }} mode=0755
force: yes
- name: Test Execution
block:
- name: Execute the tests
command: python3 {{ config.testfilepath }}/{{ config.testfilename }} "{{ config }}"
command: python3 {{ config.testgitclonepath }}/tests/{{ config.testfilename }} "{{ config }}"
always:
- name: Pull out the artifacts