[jenkins-ci PATCH v2 3/3] Add libvirt-ocaml project

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

 



Not built on Debian 8, as the version of OCaml is not new enough.

Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
---
 guests/playbooks/build/jobs/defaults.yml      |  2 ++
 .../build/projects/libvirt-ocaml.yml          | 27 +++++++++++++++++++
 jobs/defaults.yaml                            |  2 ++
 projects/libvirt-ocaml.yaml                   | 23 ++++++++++++++++
 4 files changed, 54 insertions(+)
 create mode 100644 guests/playbooks/build/projects/libvirt-ocaml.yml
 create mode 100644 projects/libvirt-ocaml.yaml

diff --git a/guests/playbooks/build/jobs/defaults.yml b/guests/playbooks/build/jobs/defaults.yml
index 522dd83..81c5fab 100644
--- a/guests/playbooks/build/jobs/defaults.yml
+++ b/guests/playbooks/build/jobs/defaults.yml
@@ -52,6 +52,8 @@ git_urls:
     default: https://github.com/libvirt/libvirt-go-xml.git
   libvirt-go:
     default: https://github.com/libvirt/libvirt-go.git
+  libvirt-ocaml:
+    default: https://github.com/libvirt/libvirt-ocaml.git
   libvirt-perl:
     default: https://github.com/libvirt/libvirt-perl.git
   libvirt-python:
diff --git a/guests/playbooks/build/projects/libvirt-ocaml.yml b/guests/playbooks/build/projects/libvirt-ocaml.yml
new file mode 100644
index 0000000..f0dec8b
--- /dev/null
+++ b/guests/playbooks/build/projects/libvirt-ocaml.yml
@@ -0,0 +1,27 @@
+---
+- set_fact:
+    name: libvirt-ocaml
+    # Debian 8 doesn't have a recent enough OCaml
+    machines:
+      - libvirt-centos-7
+      - libvirt-debian-9
+      - libvirt-debian-sid
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+      - libvirt-freebsd-current
+      - libvirt-ubuntu-16
+      - libvirt-ubuntu-18
+    archive_format: xz
+    git_url: '{{ git_urls["libvirt-ocaml"][git_remote] }}'
+
+- include: '{{ playbook_base }}/jobs/prepare.yml'
+- include: '{{ playbook_base }}/jobs/generic-build-job.yml'
+  vars:
+    command: |
+      autoreconf -vfi
+      ./configure --prefix=$VIRT_PREFIX
+      $MAKE
+      $MAKE opt
diff --git a/jobs/defaults.yaml b/jobs/defaults.yaml
index 5cf84dc..13cc443 100644
--- a/jobs/defaults.yaml
+++ b/jobs/defaults.yaml
@@ -51,6 +51,8 @@
         default: https://github.com/libvirt/libvirt-go-xml.git
       libvirt-go:
         default: https://github.com/libvirt/libvirt-go.git
+      libvirt-ocaml:
+        default: https://github.com/libvirt/libvirt-ocaml.git
       libvirt-perl:
         default: https://github.com/libvirt/libvirt-perl.git
       libvirt-python:
diff --git a/projects/libvirt-ocaml.yaml b/projects/libvirt-ocaml.yaml
new file mode 100644
index 0000000..e9e3837
--- /dev/null
+++ b/projects/libvirt-ocaml.yaml
@@ -0,0 +1,23 @@
+
+- project:
+    name: libvirt-ocaml
+    # Debian 8 doesn't have a recent enough OCaml
+    machines:
+      - libvirt-centos-7
+      - libvirt-debian-9
+      - libvirt-fedora-27
+      - libvirt-fedora-28
+      - libvirt-fedora-rawhide
+      - libvirt-freebsd-10
+      - libvirt-freebsd-11
+    title: Libvirt OCaml
+    archive_format: xz
+    git_url: '{git_urls[libvirt-ocaml][default]}'
+    jobs:
+      - generic-build-job:
+          parent_jobs: 'libvirt-build'
+          command: |
+            autoreconf -vfi
+            ./configure --prefix=$VIRT_PREFIX
+            $MAKE
+            $MAKE opt
-- 
2.17.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux