4b9fc09a1c
The original idea was that we'd have a "python27" job. But it turns out that "python27" isn't actually as universal as you might think. "tox-py27" on the other hand is a thing that can and should always work for people who want to run tox with the py27 env. Port in the jobs we had in openstack-zuul-jobs. Also, copy in the text of the old shell scripts so that we can iterate on them and make them better piecemeal. These are named zuul-tox not tox because we already have tox jobs defined elsewhere. We'll need to do the naming dance while we work on them. Change-Id: I813f3f2ae138c07918556bc81655518023527131
23 lines
629 B
YAML
23 lines
629 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Find tox directories to synchrionize
|
|
find:
|
|
file_type: directory
|
|
paths: "src/{{ zuul.project.canonical_name }}/.tox"
|
|
# NOTE(pabelanger): The .tox/log folder is empty, ignore it.
|
|
patterns: ^(?!log).*$
|
|
use_regex: yes
|
|
register: result
|
|
|
|
- name: Ensure local tox dir
|
|
file:
|
|
path: "{{ zuul.executor.log_root }}/tox"
|
|
state: directory
|
|
|
|
- name: Collect tox logs
|
|
synchronize:
|
|
dest: "{{ zuul.executor.log_root }}/tox"
|
|
mode: pull
|
|
src: "{{ item.path }}/log/"
|
|
with_items: "{{ result.files }}"
|