[PATCH jenkins-ci 04/19] jobs: add a template for Python distutils

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

 



Add a template for projects using the python distutils
framework

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 jobs/python-distutils.yaml | 99 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)
 create mode 100644 jobs/python-distutils.yaml

diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
new file mode 100644
index 0000000..6179d3f
--- /dev/null
+++ b/jobs/python-distutils.yaml
@@ -0,0 +1,99 @@
+
+- job-template:
+    id: python-distutils-build-job
+    name: '{name}-build'
+    project-type: matrix
+    description: '{title} Build'
+    autogen_args: ''
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    scm:
+      - git:
+          url: git://n64.pufty.ci.centos.org/{name}.git
+          branches:
+            - origin/master
+          clean: true
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+      - pollscm:
+          cron: "H/20 * * * *"
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          python setup.py build
+          python setup.py install --prefix=$VIRT_PREFIX
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
+
+
+- job-template:
+    id: python-distutils-check-job
+    name: '{name}-check'
+    project-type: matrix
+    description: '{title} Check'
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          python setup.py test
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
+
+- job-template:
+    id: python-distutils-rpm-job
+    name: '{name}-rpm'
+    project-type: matrix
+    description: '{title} RPM'
+    workspace: '{name}'
+    block-downstream: true
+    block-upstream: true
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 1000
+    triggers:
+      - reverse:
+          jobs: '{obj:parent_jobs}'
+    axes:
+      - axis:
+          name: systems
+          type: slave
+          values: '{obj:machines}'
+    builders:
+      - shell: |
+          sed -i -e 's/BuildRequires: libvirt.*devel.*//' *.spec
+          python setup.py rpm
+    publishers:
+      - email:
+          recipients: '{obj:spam}'
+          notify-every-unstable-build: true
+          send-to-individuals: false
-- 
2.7.4

--
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]