Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame] | 1 | - name: Check for coverage-diff.html |
| 2 | stat: |
| 3 | path: "{{ ansible_user_dir }}/zuul-output/logs/coverage-diff.html" |
| 4 | get_checksum: false |
| 5 | get_mime: false |
| 6 | get_md5: false |
| 7 | register: coverage_diff_html_stat |
| 8 | |
| 9 | - name: Register current coverage report as an artifact |
| 10 | when: coverage_diff_html_stat.stat.exists |
| 11 | zuul_return: |
| 12 | data: |
| 13 | zuul: |
| 14 | artifacts: |
| 15 | - name: "Full coverage report (current)" |
| 16 | url: "coverage-current.html" |
| 17 | |
| 18 | - name: Register previous coverage report as an artifact |
| 19 | when: coverage_diff_html_stat.stat.exists |
| 20 | zuul_return: |
| 21 | data: |
| 22 | zuul: |
| 23 | artifacts: |
| 24 | - name: "Full coverage report (previous)" |
| 25 | url: "coverage-previous.html" |
| 26 | |
| 27 | - name: Register coverage report diff as an artifact |
| 28 | when: coverage_diff_html_stat.stat.exists |
| 29 | zuul_return: |
| 30 | data: |
| 31 | zuul: |
| 32 | artifacts: |
| 33 | - name: "Coverage report: difference in coverage" |
| 34 | url: "coverage-diff.html" |