Add native Zuul v3 bindep-fallback test
Migrate the legacy bindep-fallback tests to native Zuul v3 and add them here. Needed-By: I21879df52480cd864b7528221f2b5f667657b7e1 Change-Id: Ie2a7cd3d65d5f6943a2838459dbed2434d7bf26a
This commit is contained in:
parent
24427065c5
commit
375c71d993
|
@ -0,0 +1,60 @@
|
|||
- job:
|
||||
name: bindep-fallback
|
||||
description: |
|
||||
Check that bindep can install packages from
|
||||
openstack-infra/project-config/jenkins/data/bindep-fallback.txt.
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
run: playbooks/bindep-fallback/run.yaml
|
||||
vars:
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||
zuul_work_virtualenv: "{{ ansible_user_dir }}/.venv"
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-centos-7
|
||||
parent: bindep-fallback
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-fedora-26
|
||||
parent: bindep-fallback
|
||||
nodeset: fedora-26
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-debian-jessie
|
||||
parent: bindep-fallback
|
||||
nodeset: debian-jessie
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-opensuse-423
|
||||
parent: bindep-fallback
|
||||
nodeset: opensuse-423
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-ubuntu-trusty
|
||||
parent: bindep-fallback
|
||||
nodeset: ubuntu-trusty
|
||||
|
||||
- job:
|
||||
name: bindep-fallback-ubuntu-xenial
|
||||
parent: bindep-fallback
|
||||
nodeset: ubuntu-xenial
|
||||
|
||||
- project:
|
||||
name: openstack-infra/bindep
|
||||
check:
|
||||
jobs:
|
||||
- bindep-fallback-centos-7
|
||||
- bindep-fallback-debian-jessie
|
||||
- bindep-fallback-fedora-26
|
||||
- bindep-fallback-opensuse-423
|
||||
- bindep-fallback-ubuntu-trusty
|
||||
- bindep-fallback-ubuntu-xenial
|
||||
gate:
|
||||
jobs:
|
||||
- bindep-fallback-centos-7
|
||||
- bindep-fallback-debian-jessie
|
||||
- bindep-fallback-fedora-26
|
||||
- bindep-fallback-opensuse-423
|
||||
- bindep-fallback-ubuntu-trusty
|
||||
- bindep-fallback-ubuntu-xenial
|
|
@ -0,0 +1,20 @@
|
|||
- hosts: all
|
||||
pre_tasks:
|
||||
- name: Install requirements
|
||||
pip:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
virtualenv: "{{ zuul_work_virtualenv }}"
|
||||
requirements: requirements.txt
|
||||
|
||||
- name: Install the project from source
|
||||
pip:
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
virtualenv: "{{ zuul_work_virtualenv }}"
|
||||
name: .
|
||||
|
||||
roles:
|
||||
- role: bindep
|
||||
bindep_profile: test
|
||||
bindep_command: "{{ zuul_work_virtualenv }}/bin/bindep"
|
||||
# Define the global file so that no local file gets used.
|
||||
bindep_file: /usr/local/jenkins/common_data/bindep-fallback.txt
|
Loading…
Reference in New Issue