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