validations-common/zuul.d/playbooks/run.yml
Gael Chamoulaud (Strider) b6d66646b8
Migrate molecule jobs from centos 7 to 8
- assure we have docker installed
- add .gitreview file
- Fix Python shebangs for packaging

Change-Id: If9d78891f9b5a1615a9fb1f4251801eec1f29ed5
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
2020-03-13 12:23:25 +01:00

21 lines
828 B
YAML

---
- hosts: all
environment:
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/zuul-output/logs/ansible-execution.log"
tasks:
- name: Run role test job
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
. {{ ansible_user_dir }}/{{ zuul.project.src_dir }}/ansible-test-env.rc
pytest --color=no \
--html={{ ansible_user_dir }}/zuul-output/logs/reports.html \
--self-contained-html \
--ansible-args='{{ tripleo_job_ansible_args | default("") }}' \
{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/tests/test_molecule.py
args:
chdir:
"{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/validations_common/roles/{{ validations_common_role_name }}"
executable: /bin/bash
changed_when: false