Use str-common-final to finalize CI
This commit is contained in:
parent
8af6742d21
commit
c8a9fb2407
3 changed files with 41 additions and 10 deletions
|
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
|
||||
role_pkgs_req:
|
||||
- fontconfig
|
||||
- fontconfig-devel
|
||||
- pkg-config
|
||||
- rsync
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
---
|
||||
|
||||
dependencies:
|
||||
- role: str-common-init
|
||||
|
|
|
|||
|
|
@ -1,13 +1,39 @@
|
|||
---
|
||||
|
||||
- name: Test with fontconfig
|
||||
block:
|
||||
- name: language coverage
|
||||
script: run-lang-coverage-test --lang {{ item }} --path {{ path_prefix }} --artifactsdir {{ remote_artifacts }}
|
||||
with_items:
|
||||
- "{{ coverage }}"
|
||||
- name: generic family assignment
|
||||
script: run-family-test --lang {{ item.lang }} --family '{{ item.family }}' --alias {{ item.alias }} --artifactsdir {{ remote_artifacts }} --package {{ package }}
|
||||
with_items:
|
||||
- "{{ families }}"
|
||||
- block:
|
||||
- name: language coverage
|
||||
script: run-lang-coverage-test --lang "{{ item }}" --path "{{ path_prefix }}" --artifactsdir "{{ remote_artifacts }}"
|
||||
with_items:
|
||||
- "{{ coverage }}"
|
||||
- name: generic family assignment
|
||||
script: run-family-test --lang {{ item.lang }} --family '{{ item.family }}' --alias {{ item.alias }} --artifactsdir {{ remote_artifacts }} --package {{ package }}
|
||||
with_items:
|
||||
- "{{ families }}"
|
||||
|
||||
- name: Check the results
|
||||
shell: |
|
||||
log="{{ remote_artifacts }}/test.log"
|
||||
if [ ! -f "$log" ]; then
|
||||
echo ERROR
|
||||
echo "Test results not found." 1>&2
|
||||
elif grep ^ERROR "$log" 1>&2; then
|
||||
echo ERROR
|
||||
elif grep ^FAIL "$log" 1>&2; then
|
||||
echo FAIL
|
||||
elif grep -q ^PASS "$log"; then
|
||||
echo PASS
|
||||
else
|
||||
echo ERROR
|
||||
echo "No test results found." 1>&2
|
||||
fi
|
||||
register: test_results
|
||||
|
||||
- name: Set role result
|
||||
set_fact:
|
||||
role_result: "{{ test_results.stdout }}"
|
||||
role_message: "{{ test_results.stderr|d('test execution error.') }}"
|
||||
role_result_failed: "{{ test_results.stdout != 'PASS' }}"
|
||||
role_result_msg: "{{ test_results.stderr|d('test execution error.') }}"
|
||||
|
||||
- include_role:
|
||||
name: str-common-final
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue