Fix coverage test
1. We should use the report in `cover` directory instead of `cover-master`. 2. simplify job definiton base on tox-cover. Change-Id: Ic32d556b4e191c594384f7f604e4b4ff46ccf317
This commit is contained in:
parent
13e3540ea3
commit
5a4ba328c7
@ -30,14 +30,14 @@
|
|||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: rally-tox-cover
|
name: rally-tox-cover
|
||||||
parent: tox
|
parent: tox-cover
|
||||||
description: |
|
description: |
|
||||||
Run test for rally project.
|
Run test for rally project.
|
||||||
|
|
||||||
Uses tox with the ``cover`` environment.
|
Uses tox with the ``cover`` environment.
|
||||||
vars:
|
vars:
|
||||||
tox_envlist: cover
|
coverage_output_src: '{{ zuul.project.src_dir }}/cover/'
|
||||||
post-run: tests/ci/playbooks/post-rally-coverage.yaml
|
zuul_executor_dest: '{{ zuul.executor.log_root }}/coverage/'
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
check:
|
check:
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
- hosts: all
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
- name: Put coverage report in the right place
|
|
||||||
synchronize:
|
|
||||||
src: "{{ zuul.projects['git.openstack.org/openstack/rally-openstack'].src_dir }}/cover-master/"
|
|
||||||
dest: '{{ zuul.executor.log_root }}/coverage/'
|
|
||||||
mode: pull
|
|
||||||
copy_links: true
|
|
||||||
verify_host: true
|
|
||||||
rsync_opts:
|
|
||||||
- --include=/**
|
|
||||||
- --include=*/
|
|
||||||
- --exclude=*
|
|
||||||
- --prune-empty-dirs
|
|
Loading…
x
Reference in New Issue
Block a user