891537f1ca
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/gzip#acd220d425adb9f626284cb2e893c1bc9047a439
33 lines
740 B
YAML
33 lines
740 B
YAML
---
|
|
- hosts: localhost
|
|
vars:
|
|
- artifacts: ./artifacts
|
|
tags:
|
|
- atomic
|
|
- classic
|
|
- container
|
|
remote_user: root
|
|
tasks:
|
|
- name: Create the folder where we will store the tests
|
|
action: file state=directory path={{ item }}
|
|
owner=root group=root
|
|
with_items:
|
|
- /usr/local/bin
|
|
|
|
- name: Install the test files
|
|
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }}
|
|
mode=0755
|
|
with_items:
|
|
- {file: test-simple, dest: test-simple }
|
|
|
|
- block:
|
|
- name: Execute the tests
|
|
shell: exec > /tmp/test.log && /usr/local/bin/test-simple 2>&1
|
|
|
|
- always:
|
|
- name: Pull out the logs
|
|
fetch:
|
|
dest: "{{ artifacts }}/"
|
|
src: "/tmp/test.log"
|
|
flat: yes
|