|
|
|
@ -2,6 +2,10 @@
|
|
|
|
- name: collect the coverage files from the Windows host
|
|
|
|
- name: collect the coverage files from the Windows host
|
|
|
|
hosts: windows
|
|
|
|
hosts: windows
|
|
|
|
gather_facts: no
|
|
|
|
gather_facts: no
|
|
|
|
|
|
|
|
# The collections keyword is required to allow fetch to work.
|
|
|
|
|
|
|
|
# See: https://github.com/ansible/ansible/issues/68269
|
|
|
|
|
|
|
|
collections:
|
|
|
|
|
|
|
|
- ansible.windows
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: make sure all vars have been set
|
|
|
|
- name: make sure all vars have been set
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
@ -10,7 +14,7 @@
|
|
|
|
- remote_temp_path is defined
|
|
|
|
- remote_temp_path is defined
|
|
|
|
|
|
|
|
|
|
|
|
- name: zip up all coverage files in the
|
|
|
|
- name: zip up all coverage files in the
|
|
|
|
win_shell: |
|
|
|
|
ansible.windows.win_shell: |
|
|
|
|
$coverage_dir = '{{ remote_temp_path }}'
|
|
|
|
$coverage_dir = '{{ remote_temp_path }}'
|
|
|
|
$zip_file = Join-Path -Path $coverage_dir -ChildPath 'coverage.zip'
|
|
|
|
$zip_file = Join-Path -Path $coverage_dir -ChildPath 'coverage.zip'
|
|
|
|
if (Test-Path -LiteralPath $zip_file) {
|
|
|
|
if (Test-Path -LiteralPath $zip_file) {
|
|
|
|
@ -72,6 +76,6 @@
|
|
|
|
flat: yes
|
|
|
|
flat: yes
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove the temporary coverage directory
|
|
|
|
- name: remove the temporary coverage directory
|
|
|
|
win_file:
|
|
|
|
ansible.windows.win_file:
|
|
|
|
path: '{{ remote_temp_path }}'
|
|
|
|
path: '{{ remote_temp_path }}'
|
|
|
|
state: absent
|
|
|
|
state: absent
|