
This patch: - adds a basic skeleton role for tripleo_ipa generated from molecule - trivial additions to .gitignore - adds molecule-requirements.txt - invokes molecule using tox - adds basic plumbing so that we can invoke tests using zuul and locally with some handy scripts Each entry above was originally its own patch. We're consolidating them into a single patch so that we can introduce zuul, which needs to verify patches before we can merge them. If you want to run tests locally, you can use the `scripts/run-local-test` script: $ bash scripts/run-local-test Which will setup dependencies from zuul, install a virtualenv, and invoke tox. Change-Id: If9446f5597d0150a2694e655dbb45475ce38a426
19 lines
514 B
YAML
19 lines
514 B
YAML
---
|
|
|
|
- hosts: all
|
|
environment:
|
|
ANSIBLE_LOG_PATH: "{{ ansible_user_dir }}/zuul-output/logs/ansible-execution.log"
|
|
pre_tasks:
|
|
- name: Set project path fact
|
|
set_fact:
|
|
tripleo_ipa_project_path: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/x/tripleo-ipa'].src_dir }}"
|
|
|
|
tasks:
|
|
- name: Run role test job
|
|
shell: |-
|
|
. {{ ansible_user_dir }}/test-python/bin/activate
|
|
tox
|
|
args:
|
|
chdir: "{{ tripleo_ipa_project_path }}"
|
|
executable: /bin/bash
|