[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [jenkins-ci PATCH 07/12] guests: Add build projects



These tasks mirror the Jenkins projects contained in the
top-level projects/ directory.

Signed-off-by: Andrea Bolognani <abologna redhat com>
---
 guests/playbooks/build/projects/libosinfo.yml | 36 +++++++++++++
 .../playbooks/build/projects/libvirt-cim.yml  | 10 ++++
 .../playbooks/build/projects/libvirt-dbus.yml | 28 ++++++++++
 .../playbooks/build/projects/libvirt-glib.yml | 38 ++++++++++++++
 .../build/projects/libvirt-go-xml.yml         | 13 +++++
 .../playbooks/build/projects/libvirt-go.yml   | 13 +++++
 .../playbooks/build/projects/libvirt-perl.yml | 19 +++++++
 .../build/projects/libvirt-python.yml         | 13 +++++
 .../build/projects/libvirt-sandbox.yml        | 23 ++++++++
 .../playbooks/build/projects/libvirt-tck.yml  | 23 ++++++++
 guests/playbooks/build/projects/libvirt.yml   | 52 +++++++++++++++++++
 .../build/projects/osinfo-db-tools.yml        | 36 +++++++++++++
 guests/playbooks/build/projects/osinfo-db.yml | 25 +++++++++
 .../playbooks/build/projects/virt-manager.yml | 34 ++++++++++++
 .../playbooks/build/projects/virt-viewer.yml  | 38 ++++++++++++++
 15 files changed, 401 insertions(+)
 create mode 100644 guests/playbooks/build/projects/libosinfo.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-cim.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-dbus.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-glib.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-go-xml.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-go.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-perl.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-python.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-sandbox.yml
 create mode 100644 guests/playbooks/build/projects/libvirt-tck.yml
 create mode 100644 guests/playbooks/build/projects/libvirt.yml
 create mode 100644 guests/playbooks/build/projects/osinfo-db-tools.yml
 create mode 100644 guests/playbooks/build/projects/osinfo-db.yml
 create mode 100644 guests/playbooks/build/projects/virt-manager.yml
 create mode 100644 guests/playbooks/build/projects/virt-viewer.yml

diff --git a/guests/playbooks/build/projects/libosinfo.yml b/guests/playbooks/build/projects/libosinfo.yml
new file mode 100644
index 0000000..c29053b
--- /dev/null
+++ b/guests/playbooks/build/projects/libosinfo.yml
@@ -0,0 +1,36 @@
+---
+- set_fact:
+    name: libosinfo
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://gitlab.com/libosinfo/libosinfo.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw32
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw32
+    local_env: '{{ mingw32_local_env }}'
+    autogen_args: '{{ mingw32_autogen_args }}'
+    machines: '{{ mingw_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw64
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw64
+    local_env: '{{ mingw64_local_env }}'
+    autogen_args: '{{ mingw64_autogen_args }}'
+    machines: '{{ mingw_machines }}'
diff --git a/guests/playbooks/build/projects/libvirt-cim.yml b/guests/playbooks/build/projects/libvirt-cim.yml
new file mode 100644
index 0000000..f959bf6
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-cim.yml
@@ -0,0 +1,10 @@
+---
+- set_fact:
+    name: libvirt-cim
+    machines: '{{ rpm_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-cim.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
diff --git a/guests/playbooks/build/projects/libvirt-dbus.yml b/guests/playbooks/build/projects/libvirt-dbus.yml
new file mode 100644
index 0000000..6a77c7f
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-dbus.yml
@@ -0,0 +1,28 @@
+---
+- set_fact:
+    name: libvirt-dbus
+    machines:
+      - libvirt-centos-7
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+    archive_format: xz
+    git_url: https://github.com/libvirt/libvirt-dbus.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+  vars:
+    machines:
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
diff --git a/guests/playbooks/build/projects/libvirt-glib.yml b/guests/playbooks/build/projects/libvirt-glib.yml
new file mode 100644
index 0000000..0d8de9d
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-glib.yml
@@ -0,0 +1,38 @@
+---
+- set_fact:
+    name: libvirt-glib
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-glib.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    autogen_args: --enable-gtk-doc
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw32
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw32
+    local_env: '{{ mingw32_local_env }}'
+    autogen_args: '{{ mingw32_autogen_args }}'
+    machines: '{{ mingw_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw64
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw64
+    local_env: '{{ mingw64_local_env }}'
+    autogen_args: '{{ mingw64_autogen_args }}'
+    machines: '{{ mingw_machines }}'
diff --git a/guests/playbooks/build/projects/libvirt-go-xml.yml b/guests/playbooks/build/projects/libvirt-go-xml.yml
new file mode 100644
index 0000000..5dc86e7
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-go-xml.yml
@@ -0,0 +1,13 @@
+---
+- set_fact:
+    name: libvirt-go-xml
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-go-xml.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/go-build-job.yml'
+- include: '{{ playbook_base }}/jobs/go-check-job.yml'
+  vars:
+    local_env: |
+      export TEST_ARGS="-tags xmlroundtrip"
diff --git a/guests/playbooks/build/projects/libvirt-go.yml b/guests/playbooks/build/projects/libvirt-go.yml
new file mode 100644
index 0000000..9316ef1
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-go.yml
@@ -0,0 +1,13 @@
+---
+- set_fact:
+    name: libvirt-go
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-go.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/go-build-job.yml'
+- include: '{{ playbook_base }}/jobs/go-check-job.yml'
+  vars:
+    local_env: |
+      export TEST_ARGS="-tags api"
diff --git a/guests/playbooks/build/projects/libvirt-perl.yml b/guests/playbooks/build/projects/libvirt-perl.yml
new file mode 100644
index 0000000..6cb15bd
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-perl.yml
@@ -0,0 +1,19 @@
+---
+- set_fact:
+    name: libvirt-perl
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-perl.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-build-job.yml'
+  vars:
+    local_env: |
+      export TEST_MAINTAINER=1
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-check-job.yml'
+  vars:
+    local_env: |
+      export TEST_MAINTAINER=1
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
diff --git a/guests/playbooks/build/projects/libvirt-python.yml b/guests/playbooks/build/projects/libvirt-python.yml
new file mode 100644
index 0000000..f2c39be
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-python.yml
@@ -0,0 +1,13 @@
+---
+- set_fact:
+    name: libvirt-python
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-python.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/python-distutils-build-job.yml'
+- include: '{{ playbook_base }}/jobs/python-distutils-check-job.yml'
+- include: '{{ playbook_base }}/jobs/python-distutils-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
diff --git a/guests/playbooks/build/projects/libvirt-sandbox.yml b/guests/playbooks/build/projects/libvirt-sandbox.yml
new file mode 100644
index 0000000..eb4b0c9
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-sandbox.yml
@@ -0,0 +1,23 @@
+---
+- set_fact:
+    name: libvirt-sandbox
+    machines:
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-sandbox.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    autogen_args: --enable-gtk-doc
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines:
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
diff --git a/guests/playbooks/build/projects/libvirt-tck.yml b/guests/playbooks/build/projects/libvirt-tck.yml
new file mode 100644
index 0000000..13e63f4
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-tck.yml
@@ -0,0 +1,23 @@
+---
+- set_fact:
+    name: libvirt-tck
+    machines:
+      - libvirt-debian-8
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+    archive_format: gz
+    git_url: https://github.com/libvirt/libvirt-tck.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-build-job.yml'
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-check-job.yml'
+- include: '{{ playbook_base }}/jobs/perl-modulebuild-rpm-job.yml'
+  vars:
+    machines:
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
diff --git a/guests/playbooks/build/projects/libvirt.yml b/guests/playbooks/build/projects/libvirt.yml
new file mode 100644
index 0000000..ac7b2c6
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt.yml
@@ -0,0 +1,52 @@
+---
+- set_fact:
+    name: libvirt
+    machines: '{{ all_machines }}'
+    archive_format: xz
+    git_url: https://github.com/libvirt/libvirt.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+  vars:
+    machines:
+      - libvirt-centos-7
+      - libvirt-debian-8
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+  vars:
+    local_env: |
+      # gnulib's test-poll is broken on FreeBSD, so disable expensive
+      # tests (which include gnulib's test suite) until it's fixed
+      if [ "$(uname)" != "FreeBSD" ]; then
+        export VIR_TEST_EXPENSIVE=1
+      fi
+      export VIR_TEST_DEBUG=2
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw32
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw32
+    local_env: '{{ mingw32_local_env }}'
+    autogen_args: '{{ mingw32_autogen_args }}'
+    machines: '{{ mingw_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw64
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw64
+    local_env: '{{ mingw64_local_env }}'
+    autogen_args: '{{ mingw64_autogen_args }}'
+    machines: '{{ mingw_machines }}'
diff --git a/guests/playbooks/build/projects/osinfo-db-tools.yml b/guests/playbooks/build/projects/osinfo-db-tools.yml
new file mode 100644
index 0000000..a4b7c0e
--- /dev/null
+++ b/guests/playbooks/build/projects/osinfo-db-tools.yml
@@ -0,0 +1,36 @@
+---
+- set_fact:
+    name: osinfo-db-tools
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://gitlab.com/libosinfo/osinfo-db-tools.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw32
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw32
+    local_env: '{{ mingw32_local_env }}'
+    autogen_args: '{{ mingw32_autogen_args }}'
+    machines: '{{ mingw_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw64
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw64
+    local_env: '{{ mingw64_local_env }}'
+    autogen_args: '{{ mingw64_autogen_args }}'
+    machines: '{{ mingw_machines }}'
diff --git a/guests/playbooks/build/projects/osinfo-db.yml b/guests/playbooks/build/projects/osinfo-db.yml
new file mode 100644
index 0000000..e2ee9f0
--- /dev/null
+++ b/guests/playbooks/build/projects/osinfo-db.yml
@@ -0,0 +1,25 @@
+---
+- set_fact:
+    name: osinfo-db
+    machines: '{{ all_machines }}'
+    archive_format: xz
+    git_url: https://gitlab.com/libosinfo/osinfo-db.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/generic-build-job.yml'
+  vars:
+    command: |
+      $MAKE all
+      $MAKE install OSINFO_DB_TARGET="--system"
+- include: '{{ playbook_base }}/jobs/generic-check-job.yml'
+  vars:
+    command: |
+      $MAKE check
+- include: '{{ playbook_base }}/jobs/generic-rpm-job.yml'
+  vars:
+    machines: '{{ rpm_machines }}'
+    command: |
+      rm -f *.tar.{{ archive_format }}
+      $MAKE osinfo-db.spec
+      perl -i -p -e 's/BuildRequires: osinfo-db-tools.*//' osinfo-db.spec
+      $MAKE rpm
diff --git a/guests/playbooks/build/projects/virt-manager.yml b/guests/playbooks/build/projects/virt-manager.yml
new file mode 100644
index 0000000..779ea29
--- /dev/null
+++ b/guests/playbooks/build/projects/virt-manager.yml
@@ -0,0 +1,34 @@
+---
+- set_fact:
+    name: virt-manager
+    machines:
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+    archive_format: gz
+    git_url: https://github.com/virt-manager/virt-manager.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/python-distutils-build-job.yml'
+  vars:
+    command_pre_build: |
+      $PYTHON ./setup.py configure --prefix=$VIRT_PREFIX
+- include: '{{ playbook_base }}/jobs/python-distutils-check-job.yml'
+  vars:
+    # libxml2's Python 3 bindings don't work properly on FreeBSD,
+    # so skip the test suite there for the time being. See
+    # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224902
+    machines:
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+- include: '{{ playbook_base }}/jobs/python-distutils-rpm-job.yml'
+  vars:
+    machines:
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
diff --git a/guests/playbooks/build/projects/virt-viewer.yml b/guests/playbooks/build/projects/virt-viewer.yml
new file mode 100644
index 0000000..e5951c7
--- /dev/null
+++ b/guests/playbooks/build/projects/virt-viewer.yml
@@ -0,0 +1,38 @@
+---
+- set_fact:
+    name: virt-viewer
+    machines: '{{ all_machines }}'
+    archive_format: gz
+    git_url: https://pagure.io/virt-viewer.git
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-syntax-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-check-job.yml'
+- include: '{{ playbook_base }}/jobs/autotools-rpm-job.yml'
+  vars:
+    machines:
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw32
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw32
+    local_env: '{{ mingw32_local_env }}'
+    autogen_args: '{{ mingw32_autogen_args }}'
+    machines: '{{ mingw_machines }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+  vars:
+    variant: -mingw64
+    machines: '{{ mingw_machines }}'
+- include: '{{ playbook_base }}/jobs/autotools-build-job.yml'
+  vars:
+    variant: -mingw64
+    local_env: '{{ mingw64_local_env }}'
+    autogen_args: '{{ mingw64_autogen_args }}'
+    machines: '{{ mingw_machines }}'
-- 
2.17.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]