Jan Kundrát | 3a01643 | 2020-04-07 22:47:49 +0200 | [diff] [blame] | 1 | - name: Generate pycobertura report |
| 2 | shell: | |
| 3 | set -ex |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame^] | 4 | |
| 5 | pycobertura show --format html --output "{{ ansible_user_dir }}/zuul-output/logs/coverage-previous.html" \ |
| 6 | --source "{{ previous_source_prefix }}/{{ zuul.project.canonical_hostname }}/{{ zuul.project.name}}" \ |
| 7 | "{{ ansible_user_dir }}/coverage-previous.xml" |
| 8 | |
| 9 | pycobertura show --format html --output "{{ ansible_user_dir }}/zuul-output/logs/coverage-current.html" \ |
| 10 | --source "{{ zuul.project.src_dir }}" \ |
| 11 | "{{ ansible_user_dir }}/coverage-current.xml" |
| 12 | |
Jan Kundrát | 3a01643 | 2020-04-07 22:47:49 +0200 | [diff] [blame] | 13 | pycobertura diff --format html --output "{{ ansible_user_dir }}/zuul-output/logs/coverage-diff.html" \ |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame^] | 14 | --source1 "{{ previous_source_prefix }}/{{ zuul.project.canonical_hostname }}/{{ zuul.project.name}}" "{{ ansible_user_dir }}/coverage-previous.xml" \ |
| 15 | --source2 "{{ zuul.project.src_dir }}" "{{ ansible_user_dir }}/coverage-current.xml" |
Jan Kundrát | 1744cc0 | 2020-04-09 09:59:13 +0200 | [diff] [blame] | 16 | |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame^] | 17 | sed -e 's;^ </body>$; <p>Show <a href="coverage-current.html">previous</a> or <a href="coverage-current.html">final coverage</a> only</p>\n </body>;' \ |
| 18 | -i "{{ ansible_user_dir }}/zuul-output/logs/coverage-diff.html" || true |