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 | 4e7a456 | 2020-04-14 15:05:09 +0200 | [diff] [blame] | 4 | PATH=${PATH}:~/.local/bin |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame] | 5 | |
| 6 | pycobertura show --format html --output "{{ ansible_user_dir }}/zuul-output/logs/coverage-previous.html" \ |
| 7 | --source "{{ previous_source_prefix }}/{{ zuul.project.canonical_hostname }}/{{ zuul.project.name}}" \ |
| 8 | "{{ ansible_user_dir }}/coverage-previous.xml" |
| 9 | |
| 10 | pycobertura show --format html --output "{{ ansible_user_dir }}/zuul-output/logs/coverage-current.html" \ |
| 11 | --source "{{ zuul.project.src_dir }}" \ |
| 12 | "{{ ansible_user_dir }}/coverage-current.xml" |
| 13 | |
Jan Kundrát | 3a01643 | 2020-04-07 22:47:49 +0200 | [diff] [blame] | 14 | 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] | 15 | --source1 "{{ previous_source_prefix }}/{{ zuul.project.canonical_hostname }}/{{ zuul.project.name}}" "{{ ansible_user_dir }}/coverage-previous.xml" \ |
| 16 | --source2 "{{ zuul.project.src_dir }}" "{{ ansible_user_dir }}/coverage-current.xml" |
Jan Kundrát | 1744cc0 | 2020-04-09 09:59:13 +0200 | [diff] [blame] | 17 | |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame] | 18 | 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>;' \ |
| 19 | -i "{{ ansible_user_dir }}/zuul-output/logs/coverage-diff.html" || true |