zuul-jobs/roles/ensure-phoronix-test-suite/tasks/main.yaml
Tristan Cacqueray 59c5820fa6 Add phoronix-test-suite job
This change adds new jobs to run and combine phoronix test suite results.

Co-Authored-By: Nicolas Hicher <nhicher@redhat.com>
Change-Id: If94cdbd91c8d80393a71cd5c36690563de9edcd6
2020-04-03 13:03:07 +00:00

26 lines
568 B
YAML

---
- name: Install phoronix-test-suite
become: yes
package:
name: phoronix-test-suite
- name: Create config directory
file:
path: "{{ ansible_env.HOME }}/.phoronix-test-suite"
state: directory
- name: Install config
copy:
src: user-config.xml
dest: "{{ ansible_env.HOME }}/.phoronix-test-suite/user-config.xml"
- name: Ensure test results are cleaned
file:
path: "{{ ansible_env.HOME }}/test-results"
state: absent
- name: Create result directory
file:
path: "{{ ansible_env.HOME }}/test-results/"
state: directory