diff --git a/playbooks/ansible-functional-devstack/run.yaml b/playbooks/ansible-functional-devstack/run.yaml new file mode 100644 index 0000000000000..8f2fb3f1b4c15 --- /dev/null +++ b/playbooks/ansible-functional-devstack/run.yaml @@ -0,0 +1,11 @@ +- hosts: all + become: yes + roles: + - clone-devstack-gate-to-workspace + - install-devstack + - ensure-tox + - role: tox + vars: + tox_install_siblings: true + zuul_work_dir: '{{ ansible_user_dir }}/{{ (zuul.projects.values() | selectattr("short_name", "equalto", os_sdk) | list)[0].src_dir }}' + tox_envlist: ansible diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index f60cfa9b98a9f..83d9d9329e4b2 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -350,3 +350,45 @@ vars: global_env: OS_BRANCH: stable/newton + +- job: + name: openstacksdk-ansible-devel-functional-devstack + parent: init-test + description: | + Run openstacksdk ansible functional tests against a master devstack + using git devel branch version of ansible. + run: playbooks/ansible-functional-devstack/run.yaml + required-projects: + - name: ansible/ansible + override-checkout: devel + - openstack/openstacksdk + vars: + os_sdk: openstacksdk + +- job: + name: openstacksdk-ansible-stable-2.6-functional-devstack + parent: init-test + description: | + Run openstacksdk ansible functional tests against a master devstack + using git stable-2.6 branch version of ansible. + run: playbooks/ansible-functional-devstack/run.yaml + required-projects: + - name: ansible/ansible + override-checkout: stable-2.6 + - openstack/openstacksdk + vars: + os_sdk: openstacksdk + +- job: + name: shade-ansible-stable-2.5-functional-devstack + parent: init-test + description: | + Run shade ansible functional tests against a master devstack + using git stable-2.5 branch version of ansible. + run: playbooks/ansible-functional-devstack/run.yaml + required-projects: + - name: ansible/ansible + override-checkout: stable-2.5 + - openstack-infra/shade + vars: + os_sdk: shade diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml deleted file mode 100644 index 75daa71f527aa..0000000000000 --- a/zuul.d/project.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- project: - check: - jobs: - - openlab-zuul-jobs-check - -- project: - name: cloudfoundry-incubator/bosh-openstack-cpi-release - recheck-newton: - jobs: - - bosh-openstack-cpi-release-acceptance-test-newton diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml new file mode 100644 index 0000000000000..e6b1f93f39a51 --- /dev/null +++ b/zuul.d/projects.yaml @@ -0,0 +1,39 @@ +- project: + check: + jobs: + - openlab-zuul-jobs-check + +- project: + name: cloudfoundry-incubator/bosh-openstack-cpi-release + recheck-newton: + jobs: + - bosh-openstack-cpi-release-acceptance-test-newton + +- project: + name: ansible/ansible + check: + jobs: + - openstacksdk-ansible-devel-functional-devstack: + branches: devel + files: + - ^lib/ansible/modules/cloud/openstack/.* + - ^contrib/inventory/openstack_inventory.py + - ^lib/ansible/plugins/inventory/openstack.py + - ^lib/ansible/module_utils/openstack.py + - ^lib/ansible/utils/module_docs_fragments/openstack.py + - openstacksdk-ansible-stable-2.6-functional-devstack: + branches: stable-2.6 + files: + - ^lib/ansible/modules/cloud/openstack/.* + - ^contrib/inventory/openstack_inventory.py + - ^lib/ansible/plugins/inventory/openstack.py + - ^lib/ansible/module_utils/openstack.py + - ^lib/ansible/utils/module_docs_fragments/openstack.py + - shade-ansible-stable-2.5-functional-devstack: + branches: stable-2.5 + files: + - ^lib/ansible/modules/cloud/openstack/.* + - ^contrib/inventory/openstack.py + - ^lib/ansible/plugins/inventory/openstack.py + - ^lib/ansible/module_utils/openstack.py + - ^lib/ansible/utils/module_docs_fragments/openstack.py