aboutsummaryrefslogtreecommitdiff
path: root/ldcg-python-openxla/ansible/playbooks/test-openxla.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ldcg-python-openxla/ansible/playbooks/test-openxla.yml')
-rw-r--r--ldcg-python-openxla/ansible/playbooks/test-openxla.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/ldcg-python-openxla/ansible/playbooks/test-openxla.yml b/ldcg-python-openxla/ansible/playbooks/test-openxla.yml
new file mode 100644
index 0000000000..a3c61b70e5
--- /dev/null
+++ b/ldcg-python-openxla/ansible/playbooks/test-openxla.yml
@@ -0,0 +1,30 @@
+---
+- name: Run unit tests on OpenXLA
+ hosts: localhost
+ vars_files:
+ ../vars/vars.yml
+
+ tasks:
+ - name: Cleanup after previous build
+ ansible.builtin.file:
+ path: "{{ build_dir }}/{{ item }}"
+ state: absent
+ loop:
+ - xla
+
+ - name: Create cache dirs
+ ansible.builtin.file:
+ path: "{{ build_dir }}/{{ item }}"
+ state: directory
+ mode: 0777
+ loop:
+ - bazel-cache
+
+ - name: Go through each OpenXLA version
+ ansible.builtin.include_role:
+ name: xla
+ tasks_from: loop.yml
+ loop: "{{ versions | dict2items }}"
+ loop_control:
+ loop_var: xla_ver
+ when: xla_ver.key in to_be_built